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

Commit

Permalink
Merge pull request #421 from adobe/rlim/file-path-issue
Browse files Browse the repository at this point in the history
Convert file paths to native paths before calling FindFirstFile.
  • Loading branch information
JeffryBooher committed Feb 12, 2014
2 parents 48e9e79 + 651bfd6 commit 3b31c24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions appshell/appshell_extensions_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,10 @@ int32 ReadDir(ExtensionString path, CefRefPtr<CefListValue>& 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);

Expand Down

0 comments on commit 3b31c24

Please sign in to comment.