X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Usermode%2FLibraries%2Flibaxwin4.so_src%2Fwm.cpp;h=7ce61e4b1bb70fd360255cfd1a28bd13c39b2b9c;hb=7cbd63bd08b7a25dece2589403e330751a8ce2ef;hp=ee1895ea1f6967705a5837c95c85b555cb251055;hpb=10949658e20bd7b35f9ebe1d9354119d993e115b;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libaxwin4.so_src/wm.cpp b/Usermode/Libraries/libaxwin4.so_src/wm.cpp index ee1895ea..7ce61e4b 100644 --- a/Usermode/Libraries/libaxwin4.so_src/wm.cpp +++ b/Usermode/Libraries/libaxwin4.so_src/wm.cpp @@ -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();