crash test

This commit is contained in:
tildearrow 2023-01-18 13:15:00 -05:00
parent 72ca76ab7f
commit 3555ac3907
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