win32 compile fix
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 19 Dec 2005 22:11:49 +0000 (22:11 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 19 Dec 2005 22:11:49 +0000 (22:11 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1727 c046a42c-6fe2-441c-8c8c-71466251a162

block-vvfat.c

index b73a6f6..36f9713 100644 (file)
@@ -2351,8 +2351,13 @@ static int handle_renames_and_mkdirs(BDRVVVFATState* s)
            mapping_t* mapping;
            int j, parent_path_len;
 
-           if (mkdir(commit->path, 0755))
-               return -5;
+#ifdef __MINGW32__
+            if (mkdir(commit->path))
+                return -5;
+#else
+            if (mkdir(commit->path, 0755))
+                return -5;
+#endif
 
            mapping = insert_mapping(s, commit->param.mkdir.cluster,
                    commit->param.mkdir.cluster + 1);