comctl32: Avoid using uninitialized value (Coverity).

This commit is contained in:
Frédéric Delanoy 2011-12-15 15:41:10 +01:00 committed by Alexandre Julliard
parent 9e8e6e6dac
commit 8d6f9e3036
1 changed files with 6 additions and 2 deletions

View File

@ -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];