comctl32: Avoid using uninitialized value (Coverity).
This commit is contained in:
parent
9e8e6e6dac
commit
8d6f9e3036
|
@ -129,8 +129,12 @@ void THEMING_Initialize (void)
|
||||||
WNDCLASSEXW class;
|
WNDCLASSEXW class;
|
||||||
|
|
||||||
class.cbSize = sizeof(class);
|
class.cbSize = sizeof(class);
|
||||||
class.style |= CS_GLOBALCLASS;
|
if (!GetClassInfoExW (NULL, subclasses[i].className, &class))
|
||||||
GetClassInfoExW (NULL, subclasses[i].className, &class);
|
{
|
||||||
|
ERR("Could not retrieve information for class %s\n",
|
||||||
|
debugstr_w (subclasses[i].className));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
originalProcs[i] = class.lpfnWndProc;
|
originalProcs[i] = class.lpfnWndProc;
|
||||||
class.lpfnWndProc = subclassProcs[i];
|
class.lpfnWndProc = subclassProcs[i];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue