OLE32: stat on memory storage should return a NULL name, not ""
Mike McCormack
mike at codeweavers.com
Tue Aug 10 06:45:25 CDT 2004
ChangeLog:
* stat on memory storage should return a NULL name, not ""
-------------- next part --------------
Index: dlls/ole32/storage32.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/storage32.c,v
retrieving revision 1.54
diff -u -r1.54 storage32.c
--- dlls/ole32/storage32.c 21 May 2004 20:52:57 -0000 1.54
+++ dlls/ole32/storage32.c 10 Aug 2004 09:46:07 -0000
@@ -4104,7 +4104,9 @@
/*
* The copy of the string occurs only when the flag is not set
*/
- if ((statFlags & STATFLAG_NONAME) != 0)
+ if( ((statFlags & STATFLAG_NONAME) != 0) ||
+ (source->name == NULL) ||
+ (source->name[0] == 0) )
{
destination->pwcsName = 0;
}
More information about the wine-patches
mailing list