* cygheap.cc (cygheap_init): Add GLOBAL_PRIV to hProcToken explicitely

since hProcImpToken isn't initialized here.
	* shared.cc (open_shared): Always print mapname instead of name in
	debug output.
This commit is contained in:
Corinna Vinschen
2005-09-27 19:04:38 +00:00
parent e0be0a1d50
commit f1cdab8563
3 changed files with 14 additions and 8 deletions

View File

@@ -170,7 +170,7 @@ cygheap_init ()
if (!cygheap->shared_prefix)
cygheap->shared_prefix = cstrdup (
wincap.has_terminal_services ()
&& (set_process_privilege (SE_CREATE_GLOBAL_PRIV, true) >= 0
&& (set_privilege (hProcToken, SE_CREATE_GLOBAL_PRIV, true) >= 0
|| GetLastError () == ERROR_NO_SUCH_PRIVILEGE)
? "Global\\" : "");
}