Load plugins only from global plugin directory on Windows.

This prevent the crash when "datadir" is set to the program directory.
This commit is contained in:
dolphin6k 2023-11-12 22:51:21 +09:00
parent 848517dbe4
commit 44c8efc115

View file

@ -21381,7 +21381,11 @@ static void load_magic_plugins(void)
num_magics[i] = 0;
num_magics_total = 0;
#ifdef WIN32
for (plc = 0; plc < MAGIC_PLACE_LOCAL; plc++)
#else
for (plc = 0; plc < NUM_MAGIC_PLACES; plc++)
#endif
{
if (plc == MAGIC_PLACE_GLOBAL)
{