Skip to content

Commit 4b19818

Browse files
author
Tal Hadad
committed
fix: use CW2A instead of the obsolete CT2CA for windows string conversion
1 parent 0303122 commit 4b19818

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2689,7 +2689,7 @@ static std::string currentDirectoryOSCalc() {
26892689
#ifdef SIMPLECPP_WINDOWS
26902690
TCHAR NPath[MAX_PATH];
26912691
GetCurrentDirectory(MAX_PATH, NPath);
2692-
CT2CA NPathA(NPath);
2692+
CW2A NPathA(NPath);
26932693
return NPathA;
26942694
#else
26952695
const std::size_t size = 1024;

0 commit comments

Comments
 (0)