commit | 0ca07c972df23534c50133c948cdbbd737c2dcaa | [log] [tgz] |
---|---|---|
author | Bill Medland <Bill.Medland@accpac.com> | Tue Nov 20 18:53:16 2001 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Nov 20 18:53:16 2001 +0000 |
tree | 68014729bf65869d2be2aa8e7a6be6f64b1bed91 | |
parent | 5c84fff413ccc2c0ec9e8e580b8b40e1f34dca79 [diff] [blame] |
It is legal to call UnregisterClass with an hInstance of zero.
diff --git a/windows/class.c b/windows/class.c index 2be09d9..ddc7cb6 100644 --- a/windows/class.c +++ b/windows/class.c
@@ -409,7 +409,7 @@ USER_Lock(); if (atom && (classPtr = CLASS_FindClassByAtom( atom, hInstance )) && - (classPtr->hInstance == hInstance)) + (!hInstance || classPtr->hInstance == hInstance)) { ret = CLASS_FreeClass( classPtr ); }