https://bugs.winehq.org/show_bug.cgi?id=48732
--- Comment #7 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Gabriel Ivăncescu from comment #4)
Created attachment 66627 [details] Test workaround
Does this patch help? It should avoid the call if the window has no owner to begin with.
FWIW, the patch fixes the crash for me.