possibly fix major issue with NFD

This commit is contained in:
tildearrow 2022-07-14 00:14:33 -05:00
parent 936a95c112
commit 5f92a6ffa6

View file

@ -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};