Skip to content

Commit f815170

Browse files
committed
Fix codec problem in windows
1 parent a9c4d41 commit f815170

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/updater/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool createShortcut(const QString& installDir, const QString& destinationDir)
3838
HRESULT hres;
3939
hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_ALL, IID_IShellLink, (void**)&pShellLink);
4040

41-
LPCTSTR appPath = (LPCTSTR)QDir(installDir).absoluteFilePath(Global::RUN_APP_CMD).utf16();
41+
LPCTSTR appPath = (LPCTSTR)QDir(installDir).absoluteFilePath(Updater::RUN_APP_CMD).utf16();
4242
LPCTSTR lnkPath = (LPCTSTR)QDir(destinationDir).absoluteFilePath("CCR Plus 测评器.lnk").utf16();
4343

4444
if (SUCCEEDED(hres))
@@ -128,8 +128,8 @@ int main(int argc, char* argv[])
128128
else if (!strcmp(argv[i], "-d"))
129129
{
130130
_d = true;
131-
if (i + 1 < argc) url = argv[i + 1];
132-
if (i + 2 < argc) dir = argv[i + 2];
131+
if (i + 1 < argc) url = QString::fromLocal8Bit(argv[i + 1]);
132+
if (i + 2 < argc) dir = QString::fromLocal8Bit(argv[i + 2]);
133133
i += 2;
134134
}
135135
else if (!strcmp(argv[i], "-n")) _n = true;

0 commit comments

Comments
 (0)