(Discord) use fill_pathname_application_path

This commit is contained in:
twinaphex 2020-01-09 17:19:00 +01:00
parent 617940fb8d
commit be3acb902b

View File

@ -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