mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[APISETS] Fix data forwarding.
Thanks to Timo for the help :)
This commit is contained in:
parent
01ae49857a
commit
a91899a6a1
|
@ -13,8 +13,7 @@
|
||||||
@ stdcall _onexit() msvcrt._onexit
|
@ stdcall _onexit() msvcrt._onexit
|
||||||
@ stdcall _purecall() msvcrt._purecall
|
@ stdcall _purecall() msvcrt._purecall
|
||||||
@ stdcall _time64() msvcrt._time64
|
@ stdcall _time64() msvcrt._time64
|
||||||
@ extern -arch=arm64,i386,arm atexit msvcrt._imp__atexit
|
@ extern -stub atexit msvcrt.atexit # the -stub is a HACK to fix VS < 2017 build!
|
||||||
@ extern -arch=x86_64 atexit msvcrt.__imp_atexit
|
|
||||||
@ stdcall exit() msvcrt.exit
|
@ stdcall exit() msvcrt.exit
|
||||||
@ stub hgets
|
@ stub hgets
|
||||||
@ stub hwprintf
|
@ stub hwprintf
|
||||||
|
|
|
@ -69,8 +69,7 @@
|
||||||
@ stub _mbbtombc_l
|
@ stub _mbbtombc_l
|
||||||
@ stdcall _mbbtype() msvcrt._mbbtype
|
@ stdcall _mbbtype() msvcrt._mbbtype
|
||||||
@ stub _mbbtype_l
|
@ stub _mbbtype_l
|
||||||
@ extern -arch=arm64,i386,arm _mbcasemap msvcrt._imp___mbcasemap
|
@ extern -stub _mbcasemap msvcrt._mbcasemap # the -stub is a HACK to fix VS < 2017 build!
|
||||||
@ extern -arch=x86_64 _mbcasemap msvcrt.__imp__mbcasemap
|
|
||||||
@ stdcall _mbccpy() msvcrt._mbccpy
|
@ stdcall _mbccpy() msvcrt._mbccpy
|
||||||
@ stub _mbccpy_l
|
@ stub _mbccpy_l
|
||||||
@ stub _mbccpy_s
|
@ stub _mbccpy_s
|
||||||
|
|
|
@ -247,15 +247,8 @@ class SpecEntry(object):
|
||||||
arch = self.arch
|
arch = self.arch
|
||||||
if self.callconv == 'extern':
|
if self.callconv == 'extern':
|
||||||
args = ''
|
args = ''
|
||||||
callconv = 'extern'
|
callconv = 'extern -stub' # HACK
|
||||||
if arch.has(Arch.x86_64):
|
fwd += ' # the -stub is a HACK to fix VS < 2017 build!'
|
||||||
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)
|
|
||||||
if arch != Arch(Arch.Any):
|
if arch != Arch(Arch.Any):
|
||||||
opts = '{} -arch={}'.format(opts, arch.to_str())
|
opts = '{} -arch={}'.format(opts, arch.to_str())
|
||||||
spec_file.write('{ord} {cc}{opts} {name}{args} {fwd}{nl}'.format(ord=self._ord,
|
spec_file.write('{ord} {cc}{opts} {name}{args} {fwd}{nl}'.format(ord=self._ord,
|
||||||
|
|
Loading…
Reference in a new issue