mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:55:39 +00:00
Sync GetTempFileNameW to wine HEAD
svn path=/trunk/; revision=27635
This commit is contained in:
parent
532f7fecc5
commit
8acdce6856
1 changed files with 3 additions and 2 deletions
|
@ -1183,7 +1183,7 @@ UINT WINAPI GetTempFileNameW( LPCWSTR path, LPCWSTR prefix, UINT unique, LPWSTR
|
||||||
int i;
|
int i;
|
||||||
LPWSTR p;
|
LPWSTR p;
|
||||||
|
|
||||||
if ( !path || !prefix || !buffer )
|
if ( !path || !buffer )
|
||||||
{
|
{
|
||||||
SetLastError( ERROR_INVALID_PARAMETER );
|
SetLastError( ERROR_INVALID_PARAMETER );
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1195,6 +1195,7 @@ UINT WINAPI GetTempFileNameW( LPCWSTR path, LPCWSTR prefix, UINT unique, LPWSTR
|
||||||
/* add a \, if there isn't one */
|
/* add a \, if there isn't one */
|
||||||
if ((p == buffer) || (p[-1] != '\\')) *p++ = '\\';
|
if ((p == buffer) || (p[-1] != '\\')) *p++ = '\\';
|
||||||
|
|
||||||
|
if ( prefix )
|
||||||
for (i = 3; (i > 0) && (*prefix); i--) *p++ = *prefix++;
|
for (i = 3; (i > 0) && (*prefix); i--) *p++ = *prefix++;
|
||||||
|
|
||||||
unique &= 0xffff;
|
unique &= 0xffff;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue