Don't rely on implicit wxString to TCHAR* conversion, use t_str() explicitly.
Closes #11368.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62485
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// asynchronous watched with ReadDirectoryChangesW
static HANDLE OpenDir(const wxString& path)
{
- HANDLE handle = CreateFile(path, FILE_LIST_DIRECTORY,
- FILE_SHARE_READ | FILE_SHARE_WRITE |
+ HANDLE handle = CreateFile(path.t_str(),
+ FILE_LIST_DIRECTORY,
+ FILE_SHARE_READ |
+ FILE_SHARE_WRITE |
FILE_SHARE_DELETE,
- NULL, OPEN_EXISTING,
+ NULL,
+ OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS |
FILE_FLAG_OVERLAPPED,
NULL);