GetTempPath*() parameter type fix
Andreas Mohr
andi at rhlx01.fht-esslingen.de
Fri Dec 17 07:34:18 CST 2004
Hi,
GetTempPath*() uses DWORD parameters instead of UINT,
according to MSDN and header files.
Fix some typo, too.
Andreas Mohr
-------------- next part --------------
Index: dlls/kernel/module.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/module.c,v
retrieving revision 1.10
diff -u -r1.10 module.c
--- dlls/kernel/module.c 10 Sep 2004 21:16:02 -0000 1.10
+++ dlls/kernel/module.c 17 Dec 2004 13:28:34 -0000
@@ -441,7 +441,7 @@
* This function always returns the long path of hModule (as opposed to
* GetModuleFileName16() which returns short paths when the modules version
* field is < 4.0).
- * The function doesn't write a terminating '\0' is the buffer is too
+ * The function doesn't write a terminating '\0' if the buffer is too
* small.
*/
DWORD WINAPI GetModuleFileNameA(
Index: dlls/kernel/path.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/path.c,v
retrieving revision 1.16
diff -u -r1.16 path.c
--- dlls/kernel/path.c 22 Nov 2004 18:25:05 -0000 1.16
+++ dlls/kernel/path.c 17 Dec 2004 13:28:34 -0000
@@ -550,7 +550,7 @@
/***********************************************************************
* GetTempPathA (KERNEL32.@)
*/
-UINT WINAPI GetTempPathA( UINT count, LPSTR path )
+DWORD WINAPI GetTempPathA( DWORD count, LPSTR path )
{
WCHAR pathW[MAX_PATH];
UINT ret;
@@ -572,7 +572,7 @@
/***********************************************************************
* 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 };
Index: include/winbase.h
===================================================================
RCS file: /home/wine/wine/include/winbase.h,v
retrieving revision 1.221
diff -u -r1.221 winbase.h
--- include/winbase.h 27 Oct 2004 21:19:22 -0000 1.221
+++ include/winbase.h 17 Dec 2004 13:28:38 -0000
@@ -1809,8 +1809,8 @@
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*);
More information about the wine-patches
mailing list