Small fix for CommConfigDialog*() arguments
Andreas Mohr
andi at rhlx01.fht-esslingen.de
Mon May 9 08:53:14 CDT 2005
Hi all,
both MSDN and headers say that the hWnd parameter is not declared as
a HANDLE, but a HWND (just as expected).
Andreas Mohr
-------------- next part --------------
Index: dlls/kernel/comm.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/comm.c,v
retrieving revision 1.92
diff -u -r1.92 comm.c
--- dlls/kernel/comm.c 6 May 2005 16:22:55 -0000 1.92
+++ dlls/kernel/comm.c 9 May 2005 13:47:42 -0000
@@ -2124,7 +2124,7 @@
*/
BOOL WINAPI CommConfigDialogA(
LPCSTR lpszDevice, /* [in] name of communications device */
- HANDLE hWnd, /* [in] parent window for the dialog */
+ HWND hWnd, /* [in] parent window for the dialog */
LPCOMMCONFIG lpCommConfig) /* [out] pointer to struct to fill */
{
FARPROC lpfnCommDialog;
@@ -2154,7 +2154,7 @@
*/
BOOL WINAPI CommConfigDialogW(
LPCWSTR lpszDevice, /* [in] name of communications device */
- HANDLE hWnd, /* [in] parent window for the dialog */
+ HWND hWnd, /* [in] parent window for the dialog */
LPCOMMCONFIG lpCommConfig) /* [out] pointer to struct to fill */
{
FARPROC lpfnCommDialog;
Index: include/winbase.h
===================================================================
RCS file: /home/wine/wine/include/winbase.h,v
retrieving revision 1.230
diff -u -r1.230 winbase.h
--- include/winbase.h 25 Apr 2005 16:23:32 -0000 1.230
+++ include/winbase.h 9 May 2005 13:47:43 -0000
@@ -1222,8 +1222,8 @@
#define ClearEventLog WINELIB_NAME_AW(ClearEventLog)
BOOL WINAPI CloseEventLog(HANDLE);
BOOL WINAPI CloseHandle(HANDLE);
-BOOL WINAPI CommConfigDialogA(LPCSTR,HANDLE,LPCOMMCONFIG);
-BOOL WINAPI CommConfigDialogW(LPCWSTR,HANDLE,LPCOMMCONFIG);
+BOOL WINAPI CommConfigDialogA(LPCSTR,HWND,LPCOMMCONFIG);
+BOOL WINAPI CommConfigDialogW(LPCWSTR,HWND,LPCOMMCONFIG);
#define CommConfigDialog WINELIB_NAME_AW(CommConfigDialog)
BOOL WINAPI ConnectNamedPipe(HANDLE,LPOVERLAPPED);
BOOL WINAPI ContinueDebugEvent(DWORD,DWORD,DWORD);
More information about the wine-patches
mailing list