Commit 8d6f9e30 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

comctl32: Avoid using uninitialized value (Coverity).

parent 9e8e6e6d
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment