mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
Changed: Minor changes
--HG-- branch : develop
This commit is contained in:
parent
50b6af6d3d
commit
9a6b3c91b7
5 changed files with 20 additions and 20 deletions
|
@ -765,7 +765,8 @@ static bool createProcess(const std::string &programName, const std::string &arg
|
||||||
args = toString("\"%s\" ", programName.c_str()) + arguments;
|
args = toString("\"%s\" ", programName.c_str()) + arguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL res = CreateProcessW(sProgramName, utf8ToWide(args), NULL, NULL, FALSE, CREATE_DEFAULT_ERROR_MODE | CREATE_NO_WINDOW, NULL, NULL, &si, &pi);
|
// or 0 for a window
|
||||||
|
BOOL res = CreateProcessW(sProgramName, utf8ToWide(args), NULL, NULL, FALSE, CREATE_DEFAULT_ERROR_MODE | CREATE_NO_WINDOW, NULL, NULL /* current dir */, &si, &pi);
|
||||||
|
|
||||||
if (sProgramName)
|
if (sProgramName)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3221,7 +3221,7 @@ static void *yy_flex_alloc( size )
|
||||||
yy_size_t size;
|
yy_size_t size;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
return (void *) malloc( size ); // TODO: delete
|
return (void *) malloc( size );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef YY_USE_PROTOS
|
#ifdef YY_USE_PROTOS
|
||||||
|
|
|
@ -183,14 +183,13 @@ int main(int argc, char **argv)
|
||||||
Args.addArg("", "release", "", "Crash client after init");
|
Args.addArg("", "release", "", "Crash client after init");
|
||||||
#endif // TEST_CRASH_COUNTER
|
#endif // TEST_CRASH_COUNTER
|
||||||
|
|
||||||
|
// extract the 2 or 3 first param (argv[1], argv[2] and argv[3]) it must be <login> <password> [shardId]
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
if (!Args.parse(cmdline)) return 1;
|
if (!Args.parse(cmdline)) return 1;
|
||||||
#else
|
#else
|
||||||
if (!Args.parse(argc, argv)) return 1;
|
if (!Args.parse(argc, argv)) return 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// extract the 2 or 3 first param (argv[1], argv[2] and argv[3]) it must be <login> <password> [shardId]
|
|
||||||
|
|
||||||
// no shard id in ring mode
|
// no shard id in ring mode
|
||||||
std::string sLoginShardId;
|
std::string sLoginShardId;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue