mirror of
https://github.com/ksherlock/rlint.git
synced 2024-09-27 12:55:36 +00:00
NewWindow2 checks for null title/color/control lists.
This commit is contained in:
parent
aac93fc859
commit
dc658f8533
@ -173,16 +173,18 @@ void check_rWindParam1(Handle h) {
|
||||
unsigned desc = ptr->p1InDesc;
|
||||
|
||||
ref = (Ref)ptr->p1Title;
|
||||
if (desc & 0x0200) check(rPString, ref);
|
||||
if (ref && (desc & 0x0200)) check(rPString, ref);
|
||||
|
||||
ref = (Ref)ptr->p1ColorTable;
|
||||
if (desc & 0x0800) check(rWindColor, ref);
|
||||
if (ref && (desc & 0x0800)) check(rWindColor, ref);
|
||||
|
||||
ref = (Ref)ptr->p1ControlList;
|
||||
if (ref) {
|
||||
switch(desc & 0xff) {
|
||||
case singleResource: check(rControlTemplate, ref); break;
|
||||
case resourceToResource: check(rControlList, ref); break;
|
||||
default: break; /* warn about invalid value ? */
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user