diff --git a/src/main/windows/SDL_windows_main.c b/src/main/windows/SDL_windows_main.c index 056787e40..70fb9b9b7 100644 --- a/src/main/windows/SDL_windows_main.c +++ b/src/main/windows/SDL_windows_main.c @@ -70,7 +70,7 @@ main_getcmdline(void) if (!argv[i]) { return OutOfMemory(); } - CopyMemory(argv[i], arg, len); + SDL_memcpy(argv[i], arg, len); SDL_free(arg); } argv[i] = NULL;