forked from Mirrors/wine-wine
Skip directories when loading debug symbols.
parent
e939206f90
commit
af1df43df8
|
@ -1214,6 +1214,7 @@ enum DbgInfoLoad DEBUG_LoadElfStabs(DBG_MODULE* module)
|
||||||
|
|
||||||
/* check that the file exists, and that the module hasn't been loaded yet */
|
/* check that the file exists, and that the module hasn't been loaded yet */
|
||||||
if (stat(module->module_name, &statbuf) == -1) goto leave;
|
if (stat(module->module_name, &statbuf) == -1) goto leave;
|
||||||
|
if (S_ISDIR(statbuf.st_mode)) goto leave;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now open the file, so that we can mmap() it.
|
* Now open the file, so that we can mmap() it.
|
||||||
|
|
Loading…
Reference in New Issue