From 084ed53e63a5a87fa75ce9f73b0c0dce63b89777 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 15 Oct 2016 01:21:04 -0400 Subject: [PATCH] Fixed a latent bug in uiFreeInitError() on Windows. --- windows/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/init.cpp b/windows/init.cpp index c91929f9..22874165 100644 --- a/windows/init.cpp +++ b/windows/init.cpp @@ -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)