Skip to content

Commit

Permalink
fixed a string export bug where an Unicode string was treated as ASCII.
Browse files Browse the repository at this point in the history
  • Loading branch information
zodiacon committed Apr 12, 2024
1 parent 55d7692 commit 3f7b1e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RegExp/RegExportImport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool RegExportImport::ExportKey(HKEY hKey, HANDLE hFile, PCWSTR section) const {
break;

case REG_SZ: {
CString text(data.get());
CString text((PCWSTR)data.get());
text.Replace(L"\"", L"\\\"");
WriteString(hFile, sname + L"=\"" + text + L"\"\n");
break;
Expand Down

0 comments on commit 3f7b1e2

Please sign in to comment.