Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Apps are crashing on Windows Shutdown
Re: Apps are crashing on Windows Shutdown [message #52929 is a reply to message #52925] Tue, 14 January 2020 05:36 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 697
Registered: December 2005
Location: Budapest, Hungary
Contributor
Yes the problem is there.
So the proposed patch would be the fix of a mistyping in Ctrl::OverwatchWndProc():

 		ONCELOCK {
 			if(HMODULE hDLL = LoadLibrary ("user32")) {
 				AutoCast(ShutdownBlockReasonCreate, GetProcAddress(hDLL, "ShutdownBlockReasonCreate"));
-				AutoCast(ShutdownBlockReasonDestroy, GetProcAddress(hDLL, "ShutdownBlockReasonCreate"));
+				AutoCast(ShutdownBlockReasonDestroy, GetProcAddress(hDLL, "ShutdownBlockReasonDestroy"));
 			}
 		}
 		if(ShutdownBlockReasonCreate)
 			ShutdownBlockReasonCreate(hwnd, ~WString(t_("waiting for user response")));
 		EndSession();
 		ELOGW("WM_QUERYENDSESSION 1");
 		OverwatchEndSession.Wait();


[Updated on: Tue, 14 January 2020 05:36]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: GTK backend now requires hb.h to be presented in include paths (Manjaro)
Next Topic: [Closed]SDLSoundDemo linking error
Goto Forum:
  


Current Time: Mon Apr 29 03:45:50 CEST 2024

Total time taken to generate the page: 0.03596 seconds