Better fix for the GetTempFileName problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This obsoletes my earlier patch.

Mike Hearn <mike@xxxxxxxxxxxxx>
Remove erroneous boolean inversion in GetTempFileName. Fixes the latest
NSIS installers.

Index: files/file.c
===================================================================
RCS file: /home/wine/wine/files/file.c,v
retrieving revision 1.197
diff -u -r1.197 file.c
--- files/file.c        15 Dec 2003 20:15:20 -0000      1.197
+++ files/file.c        25 Dec 2003 19:10:35 -0000
@@ -922,7 +922,7 @@
     p = buffer + strlenW(buffer);
  
     /* add a \, if there isn't one and path is more than just the drive letter ... */
-    if ( !((strlenW(buffer) == 2) && (buffer[1] == ':'))
+    if ( ((strlenW(buffer) == 2) && (buffer[1] == ':'))
        && ((p == buffer) || (p[-1] != '\\'))) *p++ = '\\';
  
     for (i = 3; (i > 0) && (*prefix); i--) *p++ = *prefix++;




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux