git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/VTerm - "Fix" wrapping issue in VTerm (why was old behavior there?)
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin4_src
/
Server
/
CClient.cpp
diff --git
a/Usermode/Applications/axwin4_src/Server/CClient.cpp
b/Usermode/Applications/axwin4_src/Server/CClient.cpp
index
9fe806e
..
6c9fe68
100644
(file)
--- a/
Usermode/Applications/axwin4_src/Server/CClient.cpp
+++ b/
Usermode/Applications/axwin4_src/Server/CClient.cpp
@@
-24,10
+24,12
@@
CClient::~CClient()
CWindow* CClient::GetWindow(int ID)
{
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)
}
void CClient::SetWindow(int ID, CWindow* window)
@@
-36,9
+38,7
@@
void CClient::SetWindow(int ID, CWindow* window)
if( m_windows[ID] ) {
delete m_windows[ID];
}
if( m_windows[ID] ) {
delete m_windows[ID];
}
- _SysDebug("SetWindow - Set", ID, window);
m_windows[ID] = window;
m_windows[ID] = window;
- _SysDebug("SetWindow - END");
}
void CClient::HandleMessage(CDeserialiser& message)
}
void CClient::HandleMessage(CDeserialiser& message)
UCC
git Repository :: git.ucc.asn.au