changeset 1197:cad6f7aa421c

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 28 Sep 2011 16:58:42 +0000
parents 452a5b1b2aa5
children 1ef76e93db82
files os2/dw.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;