Usermode/AxWin4 - (minor) Log and fail when wrong window ID is returned from server
authorJohn Hodge (sonata) <[email protected]>
Wed, 5 Nov 2014 08:06:57 +0000 (16:06 +0800)
committerJohn Hodge (sonata) <[email protected]>
Wed, 5 Nov 2014 08:06:57 +0000 (16:06 +0800)
Usermode/Libraries/libaxwin4.so_src/wm.cpp

index ee1895e..7ce61e4 100644 (file)
@@ -118,9 +118,11 @@ extern "C" void *AxWin4_GetWindowBuffer(tAxWin4_Window *Window)
                req.WriteU16(Window->m_id);
                
                CDeserialiser   response = GetSyncReply(req, IPCMSG_GETWINBUF);
-               if( response.ReadU16() != Window->m_id )
+               unsigned int rspwin = response.ReadU16();
+               if( rspwin != Window->m_id )
                {
-                       
+                       _SysDebug("AxWin4_GetWindowBuffer: GETWINBUF reply for different window (%u != %u)", rspwin, Window->m_id);
+                       return NULL;
                }
                
                uint64_t handle = response.ReadU64();

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