mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 18:43:37 +00:00
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;
|
||||
|
||||
class.cbSize = sizeof(class);
|
||||
class.style |= CS_GLOBALCLASS;
|
||||
GetClassInfoExW (NULL, subclasses[i].className, &class);
|
||||
if (!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;
|
||||
class.lpfnWndProc = subclassProcs[i];
|
||||
|
||||
|
|
Loading…
Reference in a new issue