This looks good to me. Please update second patch subject to use correct method name - ShutdownObject(). The rest is fine I think. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/310#note_2923