Mercurial > dwindows
changeset 440:9af47c551a56
Noticed an artifact from the OS/2 port that was incorrect.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 29 May 2003 18:38:49 +0000 |
parents | 7f39be80dec3 |
children | b559c06a76c2 |
files | win/dw.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);