Fixed a latent bug in uiFreeInitError() on Windows.

This commit is contained in:
Pietro Gagliardi 2016-10-15 01:21:04 -04:00
parent 0b5d4021f2
commit 084ed53e63
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ void uiUninit(void)
void uiFreeInitError(const char *err)
{
if (*(err - 1) == '-')
uiFree((void *) err);
uiFree((void *) (err - 1));
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)