mirror of
https://github.com/ksherlock/rlint.git
synced 2025-08-07 23:25:09 +00:00
NewWindow2 checks for null title/color/control lists.
This commit is contained in:
14
control.c
14
control.c
@@ -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;
|
||||
switch(desc & 0xff) {
|
||||
case singleResource: check(rControlTemplate, ref); break;
|
||||
case resourceToResource: check(rControlList, ref); break;
|
||||
default: break; /* warn about invalid value ? */
|
||||
if (ref) {
|
||||
switch(desc & 0xff) {
|
||||
case singleResource: check(rControlTemplate, ref); break;
|
||||
case resourceToResource: check(rControlList, ref); break;
|
||||
default: break; /* warn about invalid value ? */
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user