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
baseHFILES = \
ui.h \
$(testHFILES)
baseCFILES = $(testCFILES)

View File

@ -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 *, ...);

View File

@ -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();
}