mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 19:23:03 +01:00
Misc and cleanup.
This commit is contained in:
parent
0b9bb62ef0
commit
3724604ec8
@ -338,7 +338,7 @@ static THREAD_ENTRY_DECLARE cleanup_thread(THREAD_ENTRY_PARAM)
|
||||
if (new_ptr != return_buffer)
|
||||
gds__free(new_ptr);
|
||||
|
||||
fb__shutdown(0);
|
||||
fb__shutdown(NULL);
|
||||
SRVR_shutdown();
|
||||
return 0;
|
||||
}
|
||||
|
@ -211,18 +211,11 @@ LRESULT CALLBACK WindowFunc(HWND hWnd,
|
||||
*/
|
||||
if (usServerFlags & SRVR_non_service) {
|
||||
if (CanEndServer(hWnd, false)) {
|
||||
if (GetPriorityClass(GetCurrentProcess()) !=
|
||||
NORMAL_PRIORITY_CLASS)
|
||||
if (GetPriorityClass(GetCurrentProcess()) != NORMAL_PRIORITY_CLASS)
|
||||
{
|
||||
SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS);
|
||||
}
|
||||
#ifdef DEBUG_GDS_ALLOC
|
||||
//gds_alloc_report(ALLOC_verbose, "from server", 0);
|
||||
char fn[] = __FILE__;
|
||||
fn[strlen(fn) - 19] = 0; // all remote files
|
||||
gds_alloc_report(ALLOC_verbose, fn, 0);
|
||||
#endif
|
||||
JRD_shutdown_all(false);
|
||||
fb__shutdown(NULL);
|
||||
SRVR_shutdown();
|
||||
DestroyWindow(hWnd);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user