Migrated init.c, I think...
This commit is contained in:
parent
721d58d4b9
commit
53b558d16c
|
@ -101,6 +101,10 @@ const char *uiInit(uiInitOptions *o)
|
||||||
if (hDefaultCursor == NULL)
|
if (hDefaultCursor == NULL)
|
||||||
return loadLastError("loading default cursor for window classes");
|
return loadLastError("loading default cursor for window classes");
|
||||||
|
|
||||||
|
ce = initUtilWindow(hDefaultIcon, hDefaultCursor);
|
||||||
|
if (ce != NULL)
|
||||||
|
return loadLastError(ce);
|
||||||
|
|
||||||
if (registerWindowClass(hDefaultIcon, hDefaultCursor) == 0)
|
if (registerWindowClass(hDefaultIcon, hDefaultCursor) == 0)
|
||||||
return loadLastError("registering uiWindow window class");
|
return loadLastError("registering uiWindow window class");
|
||||||
|
|
||||||
|
@ -112,9 +116,8 @@ const char *uiInit(uiInitOptions *o)
|
||||||
if (hMessageFont == NULL)
|
if (hMessageFont == NULL)
|
||||||
return loadLastError("loading default messagebox font; this is the default UI font");
|
return loadLastError("loading default messagebox font; this is the default UI font");
|
||||||
|
|
||||||
ce = initContainer(hDefaultIcon, hDefaultCursor);
|
if (initContainer(hDefaultIcon, hDefaultCursor) == 0)
|
||||||
if (ce != NULL)
|
return loadLastError("initializing uiMakeContainer() window class");
|
||||||
return loadLastError(ce);
|
|
||||||
|
|
||||||
if (SetConsoleCtrlHandler(consoleCtrlHandler, TRUE) == 0)
|
if (SetConsoleCtrlHandler(consoleCtrlHandler, TRUE) == 0)
|
||||||
return loadLastError("setting up console end session handler");
|
return loadLastError("setting up console end session handler");
|
||||||
|
|
Loading…
Reference in New Issue