Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Windows/Control/Dialog.cpp')
-rwxr-xr-xWindows/Control/Dialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Windows/Control/Dialog.cpp b/Windows/Control/Dialog.cpp
index e911850c..4e026d49 100755
--- a/Windows/Control/Dialog.cpp
+++ b/Windows/Control/Dialog.cpp
@@ -9,22 +9,22 @@ extern HINSTANCE g_hInstance;
namespace NWindows {
namespace NControl {
-BOOL APIENTRY DialogProcedure(HWND dialogHWND, UINT message,
+static INT_PTR APIENTRY DialogProcedure(HWND dialogHWND, UINT message,
WPARAM wParam, LPARAM lParam)
{
- CWindow aDialogTmp(dialogHWND);
+ CWindow dialogTmp(dialogHWND);
if (message == WM_INITDIALOG)
- aDialogTmp.SetUserDataLongPtr(lParam);
- CDialog *aDialog = (CDialog *)(aDialogTmp.GetUserDataLongPtr());
- if (aDialog == NULL)
+ dialogTmp.SetUserDataLongPtr(lParam);
+ CDialog *dialog = (CDialog *)(dialogTmp.GetUserDataLongPtr());
+ if (dialog == NULL)
return FALSE;
if (message == WM_INITDIALOG)
- aDialog->Attach(dialogHWND);
+ dialog->Attach(dialogHWND);
- return BoolToBOOL(aDialog->OnMessage(message, wParam, lParam));
+ return BoolToBOOL(dialog->OnMessage(message, wParam, lParam));
}
-bool CDialog::OnMessage(UINT message, UINT wParam, LPARAM lParam)
+bool CDialog::OnMessage(UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{