Author: tkreuzer
Date: Sun Feb 15 11:21:31 2015
New Revision: 66284
URL:
http://svn.reactos.org/svn/reactos?rev=66284&view=rev
Log:
[SHELL32]
Fix prototype of COpenWithDialog::NoOpenDlgProc. DLGPROCs return INT_PTR, not BOOL. Fixes
amd64 build.
Modified:
trunk/reactos/dll/win32/shell32/COpenWithMenu.cpp
Modified: trunk/reactos/dll/win32/shell32/COpenWithMenu.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/COpenWit…
==============================================================================
--- trunk/reactos/dll/win32/shell32/COpenWithMenu.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/COpenWithMenu.cpp [iso-8859-1] Sun Feb 15 11:21:31
2015
@@ -783,7 +783,7 @@
VOID AddApp(COpenWithList::SApp *pApp, BOOL bSelected);
VOID Browse();
VOID Accept();
- static BOOL CALLBACK NoOpenDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM
lParam);
+ static INT_PTR CALLBACK NoOpenDlgProc(HWND hwnd, UINT Message, WPARAM wParam,
LPARAM lParam);
COpenWithList::SApp *GetCurrentApp();
const OPENASINFO *m_pInfo;
@@ -816,7 +816,7 @@
ImageList_Destroy(m_hImgList);
}
-BOOL CALLBACK COpenWithDialog::NoOpenDlgProc(HWND hwnd, UINT Message, WPARAM wParam,
LPARAM lParam)
+INT_PTR CALLBACK COpenWithDialog::NoOpenDlgProc(HWND hwnd, UINT Message, WPARAM wParam,
LPARAM lParam)
{
switch(Message)
{
@@ -850,7 +850,7 @@
if (m_bNoOpen)
{
int dReturnValue = DialogBox(shell32_hInstance, MAKEINTRESOURCE(IDD_NOOPEN),
hwnd, NoOpenDlgProc);
-
+
if (dReturnValue == IDNO)
return TRUE;
else if (dReturnValue == -1)