Aric Stewart aric@codeweavers.com writes:
+HRESULT WINAPI BaseWindow_Destroy(BaseWindow *This) +{
- if (This->hWnd)
BaseWindowImpl_DoneWithWindow(This);
- UnregisterClassW(This->pClassName, NULL);
You most likely don't want to unregister the class every time.
- wnd_class_registered = GetClassInfoW(This->hInstance, This->pClassName,
&winclass);
- if (!wnd_class_registered)
- {
There shouldn't be any reason to do this.