X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin4_src%2FServer%2FCClient.cpp;h=92898b110a92db39a7d13e92870e4851fe93fc09;hb=aa5e13445f3d9ab6e0c0049780f38daed443104f;hp=9fe806e37a941f97ae9690865f8a8d293d089bfa;hpb=0868c6e02b76236ea70a6daa232b3c373f61e131;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin4_src/Server/CClient.cpp b/Usermode/Applications/axwin4_src/Server/CClient.cpp index 9fe806e3..92898b11 100644 --- a/Usermode/Applications/axwin4_src/Server/CClient.cpp +++ b/Usermode/Applications/axwin4_src/Server/CClient.cpp @@ -24,10 +24,13 @@ CClient::~CClient() CWindow* CClient::GetWindow(int ID) { - if( ID == 0 ) - return 0; - - return m_windows[ID]; + _SysDebug("GetWindow(ID=%i)", ID); + try { + return m_windows.at(ID); + } + catch(const std::exception& e) { + return NULL; + } } void CClient::SetWindow(int ID, CWindow* window) @@ -36,9 +39,7 @@ void CClient::SetWindow(int ID, CWindow* window) if( m_windows[ID] ) { delete m_windows[ID]; } - _SysDebug("SetWindow - Set", ID, window); m_windows[ID] = window; - _SysDebug("SetWindow - END"); } void CClient::HandleMessage(CDeserialiser& message)