# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1317229122 0 # Node ID cad6f7aa421cea7958e401e0bd939594f7bf0b80 # Parent 452a5b1b2aa5e86354f561b127129331cb84843b Fixed a couple slight issues with the last commit. Check >= for the GlobalID to avoid threading issues... Also had the wrong comparison in LN_SELECT/SLN_CHANGE. diff -r 452a5b1b2aa5 -r cad6f7aa421c os2/dw.c --- a/os2/dw.c Wed Sep 28 16:51:56 2011 +0000 +++ b/os2/dw.c Wed Sep 28 16:58:42 2011 +0000 @@ -135,7 +135,7 @@ static USHORT GlobalID = 9999; GlobalID++; - if(GlobalID == 65535) + if(GlobalID >= 65535) { GlobalID = 10000; } @@ -2621,7 +2621,7 @@ { int (* API valuechangedfunc)(HWND, int, void *) = (int (* API)(HWND, int, void *))tmp->signalfunction; - if(tmp->window == hWnd || notifyhwnd == hWnd) + if(tmp->window == hWnd || tmp->window == notifyhwnd) { static int lastvalue = -1; static HWND lasthwnd = NULLHANDLE;