Revert "crash test"

This reverts commit 3555ac3907.
This commit is contained in:
tildearrow 2023-01-18 14:22:36 -05:00
parent 3555ac3907
commit eb1531ac1c
1 changed files with 3 additions and 3 deletions

View File

@ -422,7 +422,7 @@ nfdresult_t NFD_OpenDialog( const std::vector<std::string>& filterList,
nfdselcallback_t selCallback )
{
nfdresult_t nfdResult = NFD_ERROR;
//NFDWinEvents* winEvents;
NFDWinEvents* winEvents;
bool hasEvents=true;
DWORD eventID=0;
@ -458,14 +458,14 @@ nfdresult_t NFD_OpenDialog( const std::vector<std::string>& filterList,
}
// Pass the callback
/*winEvents=new NFDWinEvents(selCallback);
winEvents=new NFDWinEvents(selCallback);
if ( !SUCCEEDED(fileOpenDialog->Advise(winEvents,&eventID)) ) {
// error... ignore
hasEvents=false;
winEvents->Release();
} else {
winEvents->Release();
}*/
}
// Show the dialog.
// TODO: pass the Furnace window here