diff --git a/src/gui/fileDialog.cpp b/src/gui/fileDialog.cpp index bd54bf0f..0bcc00a4 100644 --- a/src/gui/fileDialog.cpp +++ b/src/gui/fileDialog.cpp @@ -28,7 +28,7 @@ struct NFDState { void _nfdThread(const NFDState state, std::atomic* ok, String* result, bool* errorOutput) { nfdchar_t* out=NULL; nfdresult_t ret=NFD_CANCEL; - errorOutput=false; + (*errorOutput)=false; if (state.isSave) { ret=NFD_SaveDialog(state.filter,state.path.c_str(),&out,state.clickCallback);