We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f622a3 commit ee066c4Copy full SHA for ee066c4
MTA10/loader/MainFunctions.cpp
@@ -191,11 +191,11 @@ void HandleDuplicateLaunching( void )
191
LPWSTR szCommandLine = GetCommandLineW ();
192
int numArgs;
193
LPWSTR* aCommandLineArgs = CommandLineToArgvW ( szCommandLine, &numArgs );
194
- for ( int i = 0; i < numArgs; ++i )
+ for ( int i = 1; i < numArgs; ++i )
195
{
196
- if ( StrCmpW ( aCommandLineArgs[i], L"-c" ) == 0 && numArgs > i )
+ if ( WStringX( aCommandLineArgs[i] ).BeginsWith( L"mtasa://" ) )
197
198
- WString wideConnectInfo = aCommandLineArgs[i + 1];
+ WString wideConnectInfo = aCommandLineArgs[i];
199
SString strConnectInfo = ToUTF8 ( wideConnectInfo );
200
201
COPYDATASTRUCT cdStruct;
0 commit comments