kernel32: set default filesystem to Fat32 rather than UnixFS
Austin English
austinenglish at gmail.com
Mon Apr 13 02:53:18 CDT 2009
This recent change, designed to prevent applications from doing NTFS
specific functions on Wine, has caused quite a few regressions in
Wine, because applications expect to see a Windows type file system
(Fat32/NTFS).
While we should eventually support NTFS (at least claim to along with
emulating those functions), fat32 is a sane default for now. It lacks
those special windows specific functions, but applications recognize
it as a 'valid' filesystem.
--
-Austin
-------------- next part --------------
diff --git a/dlls/kernel32/volume.c b/dlls/kernel32/volume.c
index 9addeab..3d066e0 100644
--- a/dlls/kernel32/volume.c
+++ b/dlls/kernel32/volume.c
@@ -512,7 +512,6 @@ BOOL WINAPI GetVolumeInformationW( LPCWSTR root, LPWSTR label, DWORD label_len,
static const WCHAR fatW[] = {'F','A','T',0};
static const WCHAR fat32W[] = {'F','A','T','3','2',0};
static const WCHAR cdfsW[] = {'C','D','F','S',0};
- static const WCHAR unixfsW[] = {'U','N','I','X','F','S',0};
WCHAR device[] = {'\\','\\','.','\\','A',':',0};
HANDLE handle;
@@ -613,7 +612,7 @@ fill_fs_info: /* now fill in the information that depends on the file system ty
if (flags) *flags = FILE_CASE_PRESERVED_NAMES; /* FIXME */
break;
default:
- if (fsname) lstrcpynW( fsname, unixfsW, fsname_len );
+ if (fsname) lstrcpynW( fsname, fat32W, fsname_len );
if (filename_len) *filename_len = 255;
if (flags) *flags = FILE_CASE_PRESERVED_NAMES;
break;
More information about the wine-patches
mailing list