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:
parent
848517dbe4
commit
44c8efc115
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue