Commit 5c312198 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Removed a crash in program/clock.

parent 4718b6d0
...@@ -91,11 +91,12 @@ int CLOCK_MenuCommand (WPARAM wParam) ...@@ -91,11 +91,12 @@ int CLOCK_MenuCommand (WPARAM wParam)
VOID MAIN_FileChooseFont(VOID) { VOID MAIN_FileChooseFont(VOID) {
CHOOSEFONT font; CHOOSEFONT font;
LOGFONT lf;
font.lStructSize = sizeof(font); font.lStructSize = sizeof(font);
font.hwndOwner = Globals.hMainWnd; font.hwndOwner = Globals.hMainWnd;
font.hDC = NULL; font.hDC = NULL;
font.lpLogFont = 0; font.lpLogFont = &lf;
font.iPointSize = 0; font.iPointSize = 0;
font.Flags = 0; font.Flags = 0;
font.rgbColors = 0; font.rgbColors = 0;
...@@ -110,7 +111,7 @@ VOID MAIN_FileChooseFont(VOID) { ...@@ -110,7 +111,7 @@ VOID MAIN_FileChooseFont(VOID) {
if (ChooseFont(&font)) { if (ChooseFont(&font)) {
/* do nothing yet */ /* do nothing yet */
}; }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment