Posted: Mon Mar 28, 2022 12:05 pm Post subject: $c vsnprintf etc. linked to garbage?
(CE7.4 ia32)
vsnprintf is an inlined wrapper, and then call to ntdll._vsnprintf, which appears to be 64-bit 7FFEFE7DDA90.
And relocation is filled with lower bits garbage.
So it seems that all the headers are broken and usable.
stdlib.h/math.h directly breaks linking and make AA unable to toggle.
stdio.h/string.h has wrong wrappers and dangling linking.
Joined: 09 May 2003 Posts: 25840 Location: The netherlands
Posted: Mon Mar 28, 2022 2:53 pm Post subject:
I only recommend using the include files for structure definitions, not function declarations. For function declaration I recommend defining them yourself to prevent issues that come from header files that assume it's a normal mingw C environment, which this is not (I mean, most of the include files outright don't even work on 64-bit )
anyhow, in this case you can bypass the issue by defining __NO_ISOCEXT before as vsnprintf does exist in ntdll , so the inline code isn't needed
Code:
#define __NO_ISOCEXT
#include <stdio.h>
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum