From 47a443bfefdf826b7a48424cde76fad8ffb281c6 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 3 Apr 2020 00:32:36 +0000
Subject: [PATCH] Call SDL_RegisterAll() in initialization to set the appname
 in taskmanager.

---
 src/conio/SDL_win32_main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/conio/SDL_win32_main.c b/src/conio/SDL_win32_main.c
index 19458a676d..dd6f9f3ba5 100644
--- a/src/conio/SDL_win32_main.c
+++ b/src/conio/SDL_win32_main.c
@@ -15,6 +15,8 @@
 #define DIR_SEPERATOR TEXT("/")
 #include <direct.h>
 
+#include "SDL_main.h"			/* SDL_RegisterApp() which sets program name... */
+
 /* Parse a command line buffer into arguments */
 static int ParseCommandLine(char *cmdline, char **argv)
 {
@@ -94,6 +96,7 @@ static int console_main(int argc, char *argv[], char **env)
 	strncpy(bufp, appname, n);
 	bufp[n] = '\0';
 	appname = bufp;
+	SDL_RegisterApp(appname, 0, NULL);
 
 	/* Run the application main() code */
 	n=CIOLIB_main(argc, argv);
-- 
GitLab