aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--block-vvfat.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/block-vvfat.c b/block-vvfat.c
index b73a6f6..36f9713 100644
--- a/block-vvfat.c
+++ b/block-vvfat.c
@@ -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);