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