KERNEL: GetTempFileNameW should not require prefix
Phil Lodwick
Phil.Lodwick at EFI.COM
Tue Nov 8 15:45:32 CST 2005
> Please create the diff from the root of th project:
Here is the patch from root. Thanks Dimi!
Phil
Index: dlls/kernel/path.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/path.c,v
retrieving revision 1.26
diff -u -r1.26 path.c
--- dlls/kernel/path.c 8 Nov 2005 11:01:03 -0000 1.26
+++ dlls/kernel/path.c 8 Nov 2005 21:40:21 -0000
@@ -651,7 +651,7 @@
int i;
LPWSTR p;
- if ( !path || !prefix || !buffer )
+ if ( !path || !buffer )
{
SetLastError( ERROR_INVALID_PARAMETER );
return 0;
@@ -663,7 +663,8 @@
/* add a \, if there isn't one */
if ((p == buffer) || (p[-1] != '\\')) *p++ = '\\';
- for (i = 3; (i > 0) && (*prefix); i--) *p++ = *prefix++;
+ if (prefix)
+ for (i = 3; (i > 0) && (*prefix); i--) *p++ = *prefix++;
unique &= 0xffff;
More information about the wine-patches
mailing list