Commit 35583201 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

GetTempPath*() uses DWORD parameters instead of UINT.

parent dcb25230
......@@ -550,7 +550,7 @@ DWORD WINAPI GetShortPathNameA( LPCSTR longpath, LPSTR shortpath, DWORD shortlen
/***********************************************************************
* GetTempPathA (KERNEL32.@)
*/
UINT WINAPI GetTempPathA( UINT count, LPSTR path )
DWORD WINAPI GetTempPathA( DWORD count, LPSTR path )
{
WCHAR pathW[MAX_PATH];
UINT ret;
......@@ -572,14 +572,14 @@ UINT WINAPI GetTempPathA( UINT count, LPSTR path )
/***********************************************************************
* GetTempPathW (KERNEL32.@)
*/
UINT WINAPI GetTempPathW( UINT count, LPWSTR path )
DWORD WINAPI GetTempPathW( DWORD count, LPWSTR path )
{
static const WCHAR tmp[] = { 'T', 'M', 'P', 0 };
static const WCHAR temp[] = { 'T', 'E', 'M', 'P', 0 };
WCHAR tmp_path[MAX_PATH];
UINT ret;
TRACE("%u,%p\n", count, path);
TRACE("%lu,%p\n", count, path);
if (!(ret = GetEnvironmentVariableW( tmp, tmp_path, MAX_PATH )))
if (!(ret = GetEnvironmentVariableW( temp, tmp_path, MAX_PATH )))
......
......@@ -1809,8 +1809,8 @@ DWORD WINAPI GetTickCount(void);
UINT WINAPI GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR);
UINT WINAPI GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR);
#define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
UINT WINAPI GetTempPathA(UINT,LPSTR);
UINT WINAPI GetTempPathW(UINT,LPWSTR);
DWORD WINAPI GetTempPathA(DWORD,LPSTR);
DWORD WINAPI GetTempPathW(DWORD,LPWSTR);
#define GetTempPath WINELIB_NAME_AW(GetTempPath)
DWORD WINAPI GetVersion(void);
BOOL WINAPI GetVersionExA(OSVERSIONINFOA*);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment