samhocevar / portable-file-dialogs

💬 Portable GUI dialogs library, C++11, single-header
Do What The F*ck You Want To Public License
1.03k stars 99 forks source link

Fix HWND on windows #91

Open ohowe1 opened 1 year ago

ohowe1 commented 1 year ago

The GetActiveWindow call was in a different thread then the one that the user's application would be running in, so it returned a nullptr. This moves the call to the thread the user requested the dialog from.