Skip to content
Snippets Groups Projects
Commit add39a58 authored by Joerg Bornemann's avatar Joerg Bornemann
Browse files

fix warning C4267


We assing a DWORD to wParam when posting WM_DESTROY,
thus we can be sure that there's no loss of data.

Change-Id: I21c9b658ff06ea7792d0a357ff508bdab04fa5f7
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 85b2017a
Branches
Tags
No related merge requests found
...@@ -108,7 +108,7 @@ int main(int argc, char **) ...@@ -108,7 +108,7 @@ int main(int argc, char **)
while (GetMessage(&msg, NULL, 0, 0)) while (GetMessage(&msg, NULL, 0, 0))
{ {
if (msg.message == WM_DESTROY) if (msg.message == WM_DESTROY)
dwExitCode = msg.wParam; dwExitCode = static_cast<DWORD>(msg.wParam);
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessage(&msg); DispatchMessage(&msg);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment