Fixed assorted errors. Now to figure out why we're running out of memory...
This commit is contained in:
parent
68586e1eaf
commit
05530cafe8
|
@ -4,7 +4,6 @@
|
|||
include test/GNUmakeinc.mk
|
||||
|
||||
baseHFILES = \
|
||||
ui.h \
|
||||
$(testHFILES)
|
||||
|
||||
baseCFILES = $(testCFILES)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include "../ui.h"
|
||||
#include "../out/ui.h"
|
||||
|
||||
// main.c
|
||||
extern void die(const char *, ...);
|
||||
|
|
|
@ -85,6 +85,8 @@ const char *uiInit(uiInitOptions *o)
|
|||
if (initAlloc() == 0)
|
||||
return loadLastError("error initializing memory allocations");
|
||||
|
||||
initResizes();
|
||||
|
||||
nCmdShow = SW_SHOWDEFAULT;
|
||||
GetStartupInfoW(&si);
|
||||
if ((si.dwFlags & STARTF_USESHOWWINDOW) != 0)
|
||||
|
@ -137,6 +139,7 @@ void uiUninit(void)
|
|||
unregisterWindowClass();
|
||||
// TODO delete default cursor
|
||||
// TODO delete default icon
|
||||
uninitResizes();
|
||||
uninitAlloc();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue