Commit 63e12cf6011c36e399e43ca949fb0ea057afeb73

Ozkan Sezer 2022-06-06T22:55:56

SDL_windows_main.c: replace CopyMemory() with SDL_memcpy()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/main/windows/SDL_windows_main.c b/src/main/windows/SDL_windows_main.c
index 056787e..70fb9b9 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;