diff --git a/Contrib/AdvSplash/advsplash.c b/Contrib/AdvSplash/advsplash.c index 11ecb686..7c95e998 100644 --- a/Contrib/AdvSplash/advsplash.c +++ b/Contrib/AdvSplash/advsplash.c @@ -76,6 +76,7 @@ void SetTransparentRegion(HWND myWnd) BITMAPINFO bmi; int size = bm.bmWidth * bm.bmHeight * 4; int *bmp = GlobalAlloc(GPTR, size); + int *bmp_orig = bmp; bmi.bmiHeader.biBitCount = 32; bmi.bmiHeader.biCompression = BI_RGB; bmi.bmiHeader.biHeight = bm.bmHeight; @@ -115,7 +116,7 @@ void SetTransparentRegion(HWND myWnd) SetWindowRgn(myWnd, region, TRUE); DeleteObject(region); DeleteObject(dc); - GlobalFree(bmp); + GlobalFree(bmp_orig); } BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, diff --git a/Plugins/advsplash.dll b/Plugins/advsplash.dll index 926d2f83..ef15df2f 100644 Binary files a/Plugins/advsplash.dll and b/Plugins/advsplash.dll differ