From be3acb902bf991910aca15fc74429f3a0e6325c3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 9 Jan 2020 17:19:00 +0100 Subject: [PATCH] (Discord) use fill_pathname_application_path --- discord/discord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/discord.c b/discord/discord.c index 321a612edc..539575dca7 100644 --- a/discord/discord.c +++ b/discord/discord.c @@ -488,7 +488,7 @@ void discord_init(const char *discord_app_id) Discord_Initialize(discord_app_id, &handlers, 0, NULL); #ifdef _WIN32 - GetModuleFileNameA(NULL, full_path, sizeof(full_path)); + fill_pathname_application_path(full_path, sizeof(full_path)); if (strstr(get_retroarch_launch_arguments(), full_path)) strlcpy(command, get_retroarch_launch_arguments(), sizeof(command)); else