[SERIALUI] Set the stdcall calling convention for CommDlgProc() and make it return INT_PTR. CORE-11799 (#94)

This commit is contained in:
Amine Khaldi 2017-10-30 21:48:49 +01:00
parent ba8f75557a
commit 830fc82afe
2 changed files with 8 additions and 6 deletions

View file

@ -113,7 +113,7 @@ DWORD WINAPI drvCommConfigDialogW(LPCWSTR lpszDevice,
DialogInfo.lpCC = lpCommConfig;
return DialogBoxParamW(hDllInstance, MAKEINTRESOURCEW(IDD_COMMDLG),
hWnd, (DLGPROC)CommDlgProc, (LPARAM)&DialogInfo);
hWnd, CommDlgProc, (LPARAM)&DialogInfo);
}
/*
@ -186,10 +186,9 @@ DWORD WINAPI drvGetDefaultCommConfigA(LPCSTR lpszDevice,
*
************************************/
LRESULT CommDlgProc(HWND hDlg,
UINT Msg,
WPARAM wParam,
LPARAM lParam)
INT_PTR
CALLBACK
CommDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
{
LPDIALOG_INFO lpDlgInfo = NULL;
HWND hBox;

View file

@ -82,7 +82,10 @@ DWORD WINAPI drvGetDefaultCommConfigA(LPCSTR lpszDevice,
*
************************************/
LRESULT CommDlgProc(HWND hDlg,
INT_PTR
CALLBACK
CommDlgProc(
HWND hDlg,
UINT Msg,
WPARAM wParam,
LPARAM lParam);