]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
colors for DrawQ_Mesh are now float rather than byte, and vertices are padded to...
[xonotic/darkplaces.git] / 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))