Mercurial > dwindows
comparison os2/dw.c @ 210:b9c7b762c104
When comparing the desktop value, use the queried value not the constant.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 01 Feb 2003 10:05:27 +0000 |
parents | 767fca804cea |
children | f2d1e231922e |
comparison
equal
deleted
inserted
replaced
209:85f25e8c1b1e | 210:b9c7b762c104 |
---|---|
3352 Box *thisbox = WinQueryWindowPtr(parent, QWP_USER); | 3352 Box *thisbox = WinQueryWindowPtr(parent, QWP_USER); |
3353 | 3353 |
3354 if(!handle) | 3354 if(!handle) |
3355 return -1; | 3355 return -1; |
3356 | 3356 |
3357 if(parent != HWND_DESKTOP && thisbox && thisbox->count) | 3357 if(parent != desktop && thisbox && thisbox->count) |
3358 { | 3358 { |
3359 int z, index = -1; | 3359 int z, index = -1; |
3360 Item *tmpitem, *thisitem = thisbox->items; | 3360 Item *tmpitem, *thisitem = thisbox->items; |
3361 | 3361 |
3362 for(z=0;z<thisbox->count;z++) | 3362 for(z=0;z<thisbox->count;z++) |