🎨 Clean up appfat

This commit is contained in:
Anders Jenbo 2021-03-29 18:23:53 +02:00
commit 501c536017
5 changed files with 21 additions and 27 deletions

View file

@ -25,7 +25,7 @@ static unsigned int dthread_handler(void *data)
while (dthread_running) {
if (!sgpInfoHead && WaitForEvent(sghWorkToDoEvent) == -1) {
error_buf = TraceLastError();
error_buf = SDL_GetError();
app_fatal("dthread4:\n%s", error_buf);
}
@ -103,7 +103,7 @@ void dthread_start()
sghWorkToDoEvent = StartEvent();
if (sghWorkToDoEvent == NULL) {
error_buf = TraceLastError();
error_buf = SDL_GetError();
app_fatal("dthread:1\n%s", error_buf);
}
@ -111,7 +111,7 @@ void dthread_start()
sghThread = CreateThread(dthread_handler, &glpDThreadId);
if (sghThread == NULL) {
error_buf = TraceLastError();
error_buf = SDL_GetError();
app_fatal("dthread2:\n%s", error_buf);
}
}