mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
deploy-ng: fix issue locating blobinfo symbol on Py3+Windows
This commit is contained in:
parent
a512c44366
commit
5b2f3bc9bf
@ -601,6 +601,9 @@ class PEFile(object):
|
||||
def get_export_address(self, symbol_name):
|
||||
""" Finds the virtual address for a named export symbol. """
|
||||
|
||||
if isinstance(symbol_name, bytes):
|
||||
symbol_name = symbol_name.decode('ascii')
|
||||
|
||||
start = self.exp_rva.addr
|
||||
expdir = expdirtab(*unpack('<IIHHIIIIIII', self.vmem[start:start+40]))
|
||||
if expdir.nnames == 0 or expdir.ordinals == 0 or expdir.names == 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user