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: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Joerg Bornemann
2013-08-19 11:04:54 +02:00
parent 85b2017a69
commit add39a58e3

View File

@@ -108,7 +108,7 @@ int main(int argc, char **)
while (GetMessage(&msg, NULL, 0, 0))
{
if (msg.message == WM_DESTROY)
dwExitCode = msg.wParam;
dwExitCode = static_cast<DWORD>(msg.wParam);
TranslateMessage(&msg);
DispatchMessage(&msg);
}