user32: A window is after a call to SetParent invisible when hwnd and newParent is equal (bug 21497)

Bernhard Übelacker bernhardu at
Thu Feb 4 13:54:02 CST 2010

in SetParent the window (hwnd) get hidden by ShowWindow( hwnd, SW_HIDE ),
then a call to wineserver is done
and then the window is made visible again.

If this call to wineserver fails the window stays invisible.

This patch at least avoids this when hwnd and newParent is equal.
(If there are other cases this call could fail the window stays invisble.)

It could be observed in

Kind regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-A-window-is-after-a-call-to-SetParent-invisib.patch
Type: text/x-diff
Size: 1706 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list