mirror of
https://github.com/golang/go
synced 2024-11-19 14:54:43 -07:00
8l: minor fix discovered by lucio
R=lucio.dere, vcc.163, bradfitz CC=golang-dev https://golang.org/cl/4645044
This commit is contained in:
parent
e5105f55dc
commit
eaa082f691
@ -371,7 +371,7 @@ readsym(PeObj *obj, int i, PeSym **y)
|
||||
name = sym->name;
|
||||
if(sym->sclass == IMAGE_SYM_CLASS_STATIC && sym->value == 0) // section
|
||||
name = obj->sect[sym->sectnum-1].sym->name;
|
||||
if(strncmp(sym->name, "__imp__", 6) == 0)
|
||||
if(strncmp(sym->name, "__imp__", 7) == 0)
|
||||
name = &sym->name[7]; // __imp__Name => Name
|
||||
else if(sym->name[0] == '_')
|
||||
name = &sym->name[1]; // _Name => Name
|
||||
|
Loading…
Reference in New Issue
Block a user