FILE_CreateFile()'s read/write-check was broken due to checking of
ERROR_xxx instead of STATUS_xxx.

diff --git a/files/file.c b/files/file.c
index 206667f..48bd302 100644
--- a/files/file.c
+++ b/files/file.c
@@ -341,7 +341,7 @@
 
     if ((req->handle == -1) && !fail_read_only && (access & GENERIC_WRITE)) 
     {
-	if ((err == ERROR_ACCESS_DENIED) || (err == ERROR_WRITE_PROTECT))
+	if ((err == STATUS_MEDIA_WRITE_PROTECTED) || (err == STATUS_ACCESS_DENIED))
         {
 	    TRACE("Write access failed for file '%s', trying without "
 		  "write access", filename);