From 35583201e855f409f3bb5fe23f82f07007f6a9f0 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Fri, 17 Dec 2004 19:00:09 +0000 Subject: [PATCH] GetTempPath*() uses DWORD parameters instead of UINT. --- dlls/kernel/path.c | 6 +++--- include/winbase.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/kernel/path.c b/dlls/kernel/path.c index 344931aee86..838b0243ba4 100644 --- a/dlls/kernel/path.c +++ b/dlls/kernel/path.c @@ -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 ))) diff --git a/include/winbase.h b/include/winbase.h index c162fccc38b..eefaa4b52bb 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -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*);