Migrated init.c, I think...

This commit is contained in:
Pietro Gagliardi 2015-05-15 21:11:28 -04:00
parent 721d58d4b9
commit 53b558d16c
1 changed files with 6 additions and 3 deletions

View File

@ -101,6 +101,10 @@ const char *uiInit(uiInitOptions *o)
if (hDefaultCursor == NULL)
return loadLastError("loading default cursor for window classes");
ce = initUtilWindow(hDefaultIcon, hDefaultCursor);
if (ce != NULL)
return loadLastError(ce);
if (registerWindowClass(hDefaultIcon, hDefaultCursor) == 0)
return loadLastError("registering uiWindow window class");
@ -112,9 +116,8 @@ const char *uiInit(uiInitOptions *o)
if (hMessageFont == NULL)
return loadLastError("loading default messagebox font; this is the default UI font");
ce = initContainer(hDefaultIcon, hDefaultCursor);
if (ce != NULL)
return loadLastError(ce);
if (initContainer(hDefaultIcon, hDefaultCursor) == 0)
return loadLastError("initializing uiMakeContainer() window class");
if (SetConsoleCtrlHandler(consoleCtrlHandler, TRUE) == 0)
return loadLastError("setting up console end session handler");