Migliorato calcolo Session ID
git-svn-id: svn://10.65.10.50/branches/R_10_00@22946 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
572ff303d1
commit
e5d6e2794c
@ -1043,9 +1043,10 @@ bool OsWin32_Speak(const char* text, bool async)
|
||||
|
||||
int OsWin32_GetSessionId()
|
||||
{
|
||||
DWORD session = 0;
|
||||
::ProcessIdToSessionId(::GetCurrentProcessId(), &session);
|
||||
return (int)session;
|
||||
// DWORD session = 0;
|
||||
// ::ProcessIdToSessionId(::GetCurrentProcessId(), &session);
|
||||
// return (int)session;
|
||||
return WTSGetActiveConsoleSessionId(); // Unknown modern way!
|
||||
}
|
||||
|
||||
bool OsWin32_IsWindowsServer()
|
||||
|
@ -2702,12 +2702,14 @@ XVT_IMAGE xvt_res_get_image(int rid)
|
||||
{
|
||||
const wxString strFileName = xvtart_GetResourceName("Image", rid);
|
||||
const bool ok = !strFileName.IsEmpty();
|
||||
#ifndef NDEBUG
|
||||
if (!ok)
|
||||
{
|
||||
wxString msg;
|
||||
msg << "Can't find image code " << rid << " in resource.ini";
|
||||
xvt_dm_post_note(msg);
|
||||
}
|
||||
#endif
|
||||
return ok ? xvt_image_read(strFileName) : NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user