Skip to content

Commit

Permalink
Fixed compile error on Windows if wchar_t and TCHAR do not match
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukyu committed May 6, 2016
1 parent 8e4dade commit 72f1d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/System/GameDirectoryGuesser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ std::vector<std::string> GameDirectoryGuesser::getDirectoryList()
SHGetFolderPath(nullptr, CSIDL_PROGRAM_FILES, nullptr, 0, programFilesDirectory);
SHGetFolderPath(nullptr, CSIDL_PROGRAM_FILESX86, nullptr, 0, programFilesX86Directory);

std::wstring programFilesW(programFilesDirectory);
std::wstring programFilesX86W(programFilesX86Directory);
std::basic_string<TCHAR> programFilesW(programFilesDirectory);
std::basic_string<TCHAR> programFilesX86W(programFilesX86Directory);

std::string programFilesA(programFilesW.begin(), programFilesW.end());
std::string programFilesX86A(programFilesX86W.begin(), programFilesX86W.end());
Expand Down

0 comments on commit 72f1d25

Please sign in to comment.