Skip to content

Commit cfc3808

Browse files
committed
fix error
? Signed-off-by: 舰队的偶像-岛风酱 <frg2089@outlook.com>
1 parent eceb3d1 commit cfc3808

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Arguments GetArguments()
1919
std::wstring wszGameArgs;
2020
std::wstring lpCmdLine = GetCommandLineW();
2121
auto separator = lpCmdLine.find(L" -- ");
22-
if (separator == std::wstring::npos) {
22+
if (separator != std::wstring::npos) {
2323
wszSyringeArgs = lpCmdLine.substr(0, separator);
2424
wszGameArgs = lpCmdLine.substr(separator + 4);
2525
}

0 commit comments

Comments
 (0)