Skip to content

Commit

Permalink
return nullptr for open_folder() if no folder is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
raicool committed Aug 18, 2023
1 parent 3f3b455 commit 3b0e9c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ static const char* open_folder()
if (lpItem != NULL)
{
SHGetPathFromIDList(lpItem, dir_buf);
return dir_buf;
}
else
{
return nullptr;
}
return dir_buf;
#endif
#ifdef __LINUX__
return osdialog_file(OSDIALOG_OPEN_DIR, NULL, NULL, NULL);
Expand Down

0 comments on commit 3b0e9c6

Please sign in to comment.