X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Fipc.c;h=dcb43a96fb62536c4c5e8a7ddd86d606e9f4a47a;hb=7b44b19a9b3886de7871c2f3ea85bb3eacf74c83;hp=79e0956fc6a4e1a341b107f9f7d735643483afea;hpb=ddc8417ddc723a656241915220e44930d4b6af85;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/ipc.c b/Usermode/Applications/axwin3_src/WM/ipc.c index 79e0956f..dcb43a96 100644 --- a/Usermode/Applications/axwin3_src/WM/ipc.c +++ b/Usermode/Applications/axwin3_src/WM/ipc.c @@ -236,7 +236,7 @@ int _CompareClientPtrs(const void *_a, const void *_b) tIPC_Client *b = *(tIPC_Client**)_b; ASSERT(a); - ASSERT(b); + if(!b) return -1; if(a->IPCType < b->IPCType) return -1; if(a->IPCType > b->IPCType) return 1; @@ -255,6 +255,7 @@ int IPC_int_BSearchClients(const tIPC_Client *TargetClient, int *Pos) while(div > 0) { div /= 2; + _SysDebug("Cmp with %i [%i] (%p)", pos, div, gIPC_Clients[pos]); cmp = _CompareClientPtrs(&TargetClient, &gIPC_Clients[pos]); // _SysDebug("Checking against %i gives %i", pos, cmp); if(cmp == 0) break;