Kernel/VTerm - "Fix" wrapping issue in VTerm (why was old behavior there?)
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / CClient.cpp
index f61ca31..6c9fe68 100644 (file)
@@ -24,14 +24,17 @@ CClient::~CClient()
 
 CWindow* CClient::GetWindow(int ID)
 {
-       if( ID == 0 )
-               return 0;
-       
-       return m_windows[ID];
+       try {
+               return m_windows.at(ID);
+       }
+       catch(const std::exception& e) {
+               return NULL;
+       }
 }
 
 void CClient::SetWindow(int ID, CWindow* window)
 {
+       _SysDebug("SetWindow(ID=%i,window=%p)", ID, window);
        if( m_windows[ID] ) {
                delete m_windows[ID];
        }

UCC git Repository :: git.ucc.asn.au