diff options
Diffstat (limited to 'src/client/windows/tests')
-rw-r--r-- | src/client/windows/tests/crash_generation_app/crash_generation_app.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc index 12449ce9..7a6c1a97 100644 --- a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc +++ b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc @@ -357,13 +357,7 @@ LRESULT CALLBACK WndProc(HWND wnd, PAINTSTRUCT ps; HDC hdc; -#pragma warning(push) -#pragma warning(disable:4312) - // Disable warning C4312: 'type cast' : conversion from 'LONG' to - // 'HINSTANCE' of greater size. - // The value returned by GetwindowLong in the case below returns unsigned. - HINSTANCE instance = (HINSTANCE)GetWindowLong(wnd, GWL_HINSTANCE); -#pragma warning(pop) + HINSTANCE instance = (HINSTANCE)GetWindowLongPtr(wnd, GWLP_HINSTANCE); switch (message) { case WM_COMMAND: |