Better fix for the GetTempFileName problem
Alexandre Julliard
julliard at winehq.org
Tue Dec 30 16:33:55 CST 2003
Mike Hearn <mike at theoretic.com> writes:
> 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++ = '\\';
This is clearly not what was intended here, you'll need to investigate
this some more (and write a test case).
--
Alexandre Julliard
julliard at winehq.com
More information about the wine-devel
mailing list