From 5f92a6ffa6fe41f1b229c00a3a46f5fcbc56f270 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 14 Jul 2022 00:14:33 -0500 Subject: [PATCH] possibly fix major issue with NFD --- extern/nfd-modified/src/nfd_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/nfd-modified/src/nfd_win.cpp b/extern/nfd-modified/src/nfd_win.cpp index 9273bb1e7..b4fa5a5fa 100644 --- a/extern/nfd-modified/src/nfd_win.cpp +++ b/extern/nfd-modified/src/nfd_win.cpp @@ -368,7 +368,7 @@ static nfdresult_t AllocPathSet( IShellItemArray *shellItems, nfdpathset_t *path static nfdresult_t SetDefaultPath( IFileDialog *dialog, const char *defaultPath ) { - if ( !defaultPath || strlen(defaultPath) == 0 ) + if ( !defaultPath || strlen(defaultPath) == 0 || strcmp(defaultPath,"\\")==0 ) return NFD_OKAY; wchar_t *defaultPathW = {0};