aboutsummaryrefslogtreecommitdiff
path: root/src/client/windows/tests/crash_generation_app
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/windows/tests/crash_generation_app')
-rw-r--r--src/client/windows/tests/crash_generation_app/crash_generation_app.cc20
1 files changed, 10 insertions, 10 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 e36c1d1e..12449ce9 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
@@ -345,9 +345,9 @@ void CleanUp() {
// Processes messages for the main window.
//
-// WM_COMMAND - process the application menu.
-// WM_PAINT - Paint the main window.
-// WM_DESTROY - post a quit message and return.
+// WM_COMMAND - process the application menu.
+// WM_PAINT - Paint the main window.
+// WM_DESTROY - post a quit message and return.
LRESULT CALLBACK WndProc(HWND wnd,
UINT message,
WPARAM w_param,
@@ -359,7 +359,7 @@ LRESULT CALLBACK WndProc(HWND wnd,
#pragma warning(push)
#pragma warning(disable:4312)
- // Disable warning C4312: 'type cast' : conversion from 'LONG' to
+ // 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);
@@ -415,16 +415,16 @@ LRESULT CALLBACK WndProc(HWND wnd,
instance,
NULL);
break;
- case WM_SIZE:
- // Make the edit control the size of the window's client area.
- MoveWindow(client_status_edit_box,
+ case WM_SIZE:
+ // Make the edit control the size of the window's client area.
+ MoveWindow(client_status_edit_box,
0,
0,
LOWORD(l_param), // width of client area.
HIWORD(l_param), // height of client area.
TRUE); // repaint window.
break;
- case WM_SETFOCUS:
+ case WM_SETFOCUS:
SetFocus(client_status_edit_box);
break;
case WM_PAINT:
@@ -501,7 +501,7 @@ int APIENTRY _tWinMain(HINSTANCE instance,
MyRegisterClass(instance);
// Perform application initialization.
- if (!InitInstance (instance, command_show)) {
+ if (!InitInstance(instance, command_show)) {
return FALSE;
}
@@ -518,5 +518,5 @@ int APIENTRY _tWinMain(HINSTANCE instance,
}
}
- return (int)msg.wParam;
+ return static_cast<int>(msg.wParam);
}