Fixed assorted errors. Now to figure out why we're running out of memory...

This commit is contained in:
Pietro Gagliardi 2015-05-16 11:55:03 -04:00
parent 68586e1eaf
commit 05530cafe8
3 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,6 @@
include test/GNUmakeinc.mk include test/GNUmakeinc.mk
baseHFILES = \ baseHFILES = \
ui.h \
$(testHFILES) $(testHFILES)
baseCFILES = $(testCFILES) baseCFILES = $(testCFILES)

View File

@ -4,7 +4,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include "../ui.h" #include "../out/ui.h"
// main.c // main.c
extern void die(const char *, ...); extern void die(const char *, ...);

View File

@ -85,6 +85,8 @@ const char *uiInit(uiInitOptions *o)
if (initAlloc() == 0) if (initAlloc() == 0)
return loadLastError("error initializing memory allocations"); return loadLastError("error initializing memory allocations");
initResizes();
nCmdShow = SW_SHOWDEFAULT; nCmdShow = SW_SHOWDEFAULT;
GetStartupInfoW(&si); GetStartupInfoW(&si);
if ((si.dwFlags & STARTF_USESHOWWINDOW) != 0) if ((si.dwFlags & STARTF_USESHOWWINDOW) != 0)
@ -137,6 +139,7 @@ void uiUninit(void)
unregisterWindowClass(); unregisterWindowClass();
// TODO delete default cursor // TODO delete default cursor
// TODO delete default icon // TODO delete default icon
uninitResizes();
uninitAlloc(); uninitAlloc();
} }