Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit a84e4b8

Browse files
committed
Merge pull request #421 from adobe/rlim/file-path-issue
Convert file paths to native paths before calling FindFirstFile.
2 parents baef1f7 + 5c1f2e7 commit a84e4b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

appshell/appshell_extensions_win.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,10 @@ int32 ReadDir(ExtensionString path, CefRefPtr<CefListValue>& directoryContents)
605605

606606
path += '*';
607607

608+
// Convert to native path to ensure that FindFirstFile and FindNextFile
609+
// function correctly for all paths including paths to a network drive.
610+
ConvertToNativePath(path);
611+
608612
WIN32_FIND_DATA ffd;
609613
HANDLE hFind = FindFirstFile(path.c_str(), &ffd);
610614

0 commit comments

Comments
 (0)