]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fixed GetModuleFileName call
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 21 Aug 2002 11:26:14 +0000 (11:26 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 21 Aug 2002 11:26:14 +0000 (11:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2274 d7cf8633-e32d-0410-b094-e92efae38249

sys_win.c

index b966f58b4a92f608c9ba93039f653c21b9ba716e..12ee10b519ec413d3f22212897fa7a561b2f0e4b 100644 (file)
--- 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))