Fix app initialization

refs #6257
This commit is contained in:
Gunnar Beutner 2015-02-20 20:45:41 +01:00
parent 37e075c38a
commit d1d488a30d
1 changed files with 3 additions and 3 deletions

View File

@ -611,9 +611,6 @@ VOID WINAPI ServiceMain(DWORD argc, LPSTR *argv)
*/
int main(int argc, char **argv)
{
/* must be called before using any other libbase functions */
Application::InitializeBase();
#ifndef _WIN32
rlimit rl;
if (getrlimit(RLIMIT_NOFILE, &rl) >= 0) {
@ -633,6 +630,9 @@ int main(int argc, char **argv)
}
#endif /* _WIN32 */
/* must be called before using any other libbase functions */
Application::InitializeBase();
/* Set command-line arguments. */
Application::SetArgC(argc);
Application::SetArgV(argv);