Commit eaa082f6 authored by Alex Brainman's avatar Alex Brainman

8l: minor fix discovered by lucio

R=lucio.dere, vcc.163, bradfitz
CC=golang-dev
https://golang.org/cl/4645044
parent e5105f55
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment