From: molivier Date: Wed, 21 Aug 2002 11:26:14 +0000 (+0000) Subject: Fixed GetModuleFileName call X-Git-Tag: RELEASE_0_2_0_RC1~320 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=22658cc584bec6c2c683d0692470de5d961d46a1;p=xonotic%2Fdarkplaces.git Fixed GetModuleFileName call git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2274 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sys_win.c b/sys_win.c index b966f58b..12ee10b5 100644 --- a/sys_win.c +++ b/sys_win.c @@ -367,7 +367,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin com_argc = 1; program_name[sizeof(program_name)-1] = 0; - GetModuleFileNameA(NULL, &program_name, sizeof(program_name - 1)); + GetModuleFileNameA(NULL, program_name, sizeof(program_name) - 1); argv[0] = program_name; while (*lpCmdLine && (com_argc < MAX_NUM_ARGVS))