X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Facess2.git;a=blobdiff_plain;f=Usermode%2FLibraries%2Flibaxwin4.so_src%2Fwm.cpp;h=3672078f561ceb0d3decc37e8733c53857e83ed8;hp=7ce61e4b1bb70fd360255cfd1a28bd13c39b2b9c;hb=13078002b01ee4f63eb2001d2ef479a2a006ea32;hpb=63895b4261593e7891a28db441a54615d0374c8b diff --git a/Usermode/Libraries/libaxwin4.so_src/wm.cpp b/Usermode/Libraries/libaxwin4.so_src/wm.cpp index 7ce61e4b..3672078f 100644 --- a/Usermode/Libraries/libaxwin4.so_src/wm.cpp +++ b/Usermode/Libraries/libaxwin4.so_src/wm.cpp @@ -127,6 +127,10 @@ extern "C" void *AxWin4_GetWindowBuffer(tAxWin4_Window *Window) uint64_t handle = response.ReadU64(); Window->m_fd = _SysUnMarshalFD(handle); + if( Window->m_fd == -1 ) { + _SysDebug("AxWin4_GetWindowBuffer: Unable to unmarshal resultant FD (0x%llx)", handle); + return NULL; + } _SysDebug("AxWin4_GetWindowBuffer: %llx = %i", handle, Window->m_fd); }