PATCH: return value SetFileAttributes

Marcus Meissner Marcus.Meissner at caldera.de
Fri May 18 16:12:58 CDT 2001


Hi,

I have in the Caldera WINE setup large parts of the per-user windows 
and system directory symlinked to a readonly area. Now if I install
stuff, sometimes the SetFileAttributes() fail for those read only
files with ERROR_ACCESS_DENIED.

So I changed the return value to 'TRUE' since those MS Installer expects
it not to fail.

Ciao, Marcus

Changelog:
	Do not return FALSE on SetFileAttributes() failure (in readonly
	directory setups).

Index: file.c
===================================================================
RCS file: /home/wine/wine/win32/file.c,v
retrieving revision 1.26
diff -u -r1.26 file.c
--- file.c	2001/05/14 20:09:39	1.26
+++ file.c	2001/05/18 21:07:48
@@ -104,7 +104,7 @@
     {
         FILE_SetDosError();
         MESSAGE("Wine ERROR: Couldn't set file attributes for existing file \"%s\". Check permissions or set VFAT \"quiet\" flag !\n", full_name.long_name);
-        return FALSE;
+        return TRUE;
     }
     return TRUE;
 }




More information about the wine-patches mailing list