diff --git a/appshell/appshell_extensions_win.cpp b/appshell/appshell_extensions_win.cpp index c072b89ee..2c98f8a7f 100644 --- a/appshell/appshell_extensions_win.cpp +++ b/appshell/appshell_extensions_win.cpp @@ -603,6 +603,10 @@ int32 ReadDir(ExtensionString path, CefRefPtr& directoryContents) path += '*'; + // Convert to native path to ensure that FindFirstFile and FindNextFile + // function correctly for all paths including paths to a network drive. + ConvertToNativePath(path); + WIN32_FIND_DATA ffd; HANDLE hFind = FindFirstFile(path.c_str(), &ffd);