mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 10:22:59 +00:00
[APISETS] Fix data forwarding.
Thanks to Timo for the help :)
This commit is contained in:
parent
01ae49857a
commit
a91899a6a1
3 changed files with 4 additions and 13 deletions
|
@ -247,15 +247,8 @@ class SpecEntry(object):
|
|||
arch = self.arch
|
||||
if self.callconv == 'extern':
|
||||
args = ''
|
||||
callconv = 'extern'
|
||||
if arch.has(Arch.x86_64):
|
||||
fwd = '{}.__imp_{}'.format(*self._forwarder)
|
||||
self.arch = arch - Arch(Arch.x86_64)
|
||||
estimate_size += self.write(spec_file)
|
||||
self.arch = arch
|
||||
arch = Arch(Arch.x86_64)
|
||||
else:
|
||||
fwd = '{}._imp__{}'.format(*self._forwarder)
|
||||
callconv = 'extern -stub' # HACK
|
||||
fwd += ' # the -stub is a HACK to fix VS < 2017 build!'
|
||||
if arch != Arch(Arch.Any):
|
||||
opts = '{} -arch={}'.format(opts, arch.to_str())
|
||||
spec_file.write('{ord} {cc}{opts} {name}{args} {fwd}{nl}'.format(ord=self._ord,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue