Skip to content

Commit

Permalink
Fix codec problem in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
equation314 committed Feb 20, 2017
1 parent a9c4d41 commit f815170
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/updater/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bool createShortcut(const QString& installDir, const QString& destinationDir)
HRESULT hres;
hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_ALL, IID_IShellLink, (void**)&pShellLink);

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

if (SUCCEEDED(hres))
Expand Down Expand Up @@ -128,8 +128,8 @@ int main(int argc, char* argv[])
else if (!strcmp(argv[i], "-d"))
{
_d = true;
if (i + 1 < argc) url = argv[i + 1];
if (i + 2 < argc) dir = argv[i + 2];
if (i + 1 < argc) url = QString::fromLocal8Bit(argv[i + 1]);
if (i + 2 < argc) dir = QString::fromLocal8Bit(argv[i + 2]);
i += 2;
}
else if (!strcmp(argv[i], "-n")) _n = true;
Expand Down

0 comments on commit f815170

Please sign in to comment.