# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1054233529 0 # Node ID 9af47c551a56f8bb9ceebac0c75d291f6ce9ee0d # Parent 7f39be80dec3e01e23af7d453d46c7d33e91d627 Noticed an artifact from the OS/2 port that was incorrect. diff -r 7f39be80dec3 -r 9af47c551a56 win/dw.c --- a/win/dw.c Thu May 29 09:53:04 2003 +0000 +++ b/win/dw.c Thu May 29 18:38:49 2003 +0000 @@ -4753,7 +4753,7 @@ if(hsize && !width) width = 1; - if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0) + if(strnicmp(tmpbuf, FRAMECLASSNAME, strlen(FRAMECLASSNAME)+1)==0) tmpitem[thisbox->count].type = TYPEBOX; else { @@ -4787,7 +4787,7 @@ thisbox->count++; SetParent(item, box); - if(strncmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS))==0) + if(strncmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS)+1)==0) { ColorInfo *cinfo = (ColorInfo *)GetWindowLong(item, GWL_USERDATA); @@ -7552,7 +7552,7 @@ if(hsize && !width) width = 1; - if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0) + if(strnicmp(tmpbuf, FRAMECLASSNAME, strlen(FRAMECLASSNAME)+1)==0) tmpitem[0].type = TYPEBOX; else { @@ -7586,7 +7586,7 @@ thisbox->count++; SetParent(item, box); - if(strncmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS))==0) + if(strncmp(tmpbuf, UPDOWN_CLASS, strlen(UPDOWN_CLASS)+1)==0) { ColorInfo *cinfo = (ColorInfo *)GetWindowLong(item, GWL_USERDATA);