Windows: Fix 64-bit compitation of crash_generation_app.
BUG=560 R=mark@chromium.org Review URL: https://breakpad.appspot.com/1104002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1276 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
0864f0afaa
commit
c590a7f322
@ -357,13 +357,7 @@ LRESULT CALLBACK WndProc(HWND wnd,
|
|||||||
PAINTSTRUCT ps;
|
PAINTSTRUCT ps;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
|
||||||
#pragma warning(push)
|
HINSTANCE instance = (HINSTANCE)GetWindowLongPtr(wnd, GWLP_HINSTANCE);
|
||||||
#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)
|
|
||||||
|
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
Loading…
Reference in New Issue
Block a user