Skip to content

Commit

Permalink
Use std::string.
Browse files Browse the repository at this point in the history
  • Loading branch information
KnockKnockP committed Jun 30, 2024
1 parent 46d2b83 commit a88aabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ void AddOrRemoveAppFromStartup()
TCHAR tPath[MAX_PATH];
const DWORD length = GetModuleFileName(NULL, tPath, MAX_PATH);

const std::string sPath = "\"" + MakeStringFromTString(tPath) + "\"" + MakeStringFromTString(g_tStartupArg);
const std::string sPath = "\"" + MakeStringFromTString(tPath) + "\"" + std::string(g_StartupArg);
const LPTSTR finalPath = ConvertCppStringToTString(sPath);

RegSetValueEx(hkey, value, 0, REG_SZ, (BYTE *)finalPath, (wcslen(finalPath) + 1) * sizeof(TCHAR));
Expand Down

0 comments on commit a88aabd

Please sign in to comment.