win32 compile fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1727 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2005-12-19 22:11:49 +00:00
parent 1538800276
commit 48c2f068e4

View 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);