Commit Graph

68 Commits

Author SHA1 Message Date
Zebediah Figura 5c414922b4 winecrt0: Make __wine_(un)register_resources() cdecl.
This fixes a bug where 64-bit winegstreamer.dll would fail to (un)register
CLSID_VideoProcessorMFT when run manually with regsvr32.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 08:44:28 +01:00
Alexandre Julliard a812374a52 winecrt0: Preserve last error when loading debug functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-20 10:34:07 +01:00
Alexandre Julliard 5a9c88d62e winecrt0: Create the Ansi argv from the Unicode one.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 10:33:12 +01:00
Alexandre Julliard 8af4e177f3 winecrt0: Add .seh annotations for x86_64.
Based on a patch by Rémi Bernon.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-21 11:52:04 +02:00
Jacek Caban 4013056a67 winecrt0: Add DllMainCRTStartup.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-07 00:12:25 +02:00
Jacek Caban 2afb863372 winecrt0: Add __delayLoadHelper2.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-07 00:12:25 +02:00
Alexandre Julliard 2477aa7a10 makefiles: Default to an msvcrt build for static libraries.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-05 18:58:58 +02:00
Alexandre Julliard 61680b4449 winecrt0: Provide our own setjmp/longjmp functions for exception handling.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-18 23:51:51 +02:00
Alexandre Julliard d401837994 winecrt0: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-18 23:51:51 +02:00
Alexandre Julliard f2a7405a09 winecrt0: Make the main() and wmain() entry points cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 15:04:06 +02:00
Alexandre Julliard 60df3b14b5 include: Make the Wine exception handlers cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 15:04:06 +02:00
Alexandre Julliard c4e0b9d092 makefiles: Support cross-compilation of 16-bit libraries.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 10:15:17 +02:00
Alexandre Julliard 1f6681f474 winebuild: Use cdecl calling convention for stub exceptions.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47226
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 10:15:17 +02:00
Alexandre Julliard 170bd8f361 include: Pass function name directly to the __ASM_STDCALL macro.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 19:00:10 +02:00
Alexandre Julliard ce09e564d7 configure: Don't allow using config.h when cross-compiling.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 20:13:53 +02:00
Alexandre Julliard 3346132a0b winecrt0: Don't build unneeded code for Windows platforms.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 17:19:45 +02:00
Alexandre Julliard 351bd33069 winecrt0: Reimplement __wine_rtl_unwind() as a proper asm function.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 17:19:45 +02:00
Alexandre Julliard 9177a75acc winecrt0: Store the appropriate longjmp() function in the exception frame.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 17:19:45 +02:00
Alexandre Julliard d5a372abbb include: Move inline assembly definitions to a new wine/asm.h header.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 13:45:07 +02:00
Alexandre Julliard e78ee4f436 winecrt0: Avoid using wine/port.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-05 22:16:30 +02:00
Alistair Leslie-Hughes ab7d86552d winecrt0: Correct compile error with older gcc.
Using gcc version 4.8.4.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-04 16:58:54 +02:00
Alexandre Julliard 93a9d85488 winecrt0: Add a fallback implementation of __wine_dbg_header().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:28:19 +02:00
Alexandre Julliard b0ecbe0bae winecrt0: Add a fallback implementation of __wine_dbg_get_channel_flags().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:28:19 +02:00
Alexandre Julliard 0ad86465ae winecrt0: Add a fallback implementation of __wine_dbg_output().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:28:19 +02:00
Alexandre Julliard d6060b7cf7 winecrt0: Add a fallback implementation of __wine_dbg_strdup().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 19:28:19 +02:00
Piotr Caban 3eae4807dc include: Add __EXCEPT_CTX/__FINALLY_CTX macros.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 11:26:30 +02:00
Alexandre Julliard af6db67d6f makefiles: Get rid of the MAKE_IMPLIB_RULES variable. 2014-01-02 12:12:59 +01:00
Alexandre Julliard 1cd2786f92 makefiles: Generate cross-compile rules automatically when supported. 2014-01-01 21:28:28 +01:00
Frédéric Delanoy 299edf3217 winecrt0: Use BOOL type where appropriate. 2013-11-28 11:17:29 +01:00
Alexandre Julliard e318b4a59c makefiles: Move the static library rules to the global Make.rules file. 2013-10-09 11:25:04 +02:00
André Hentschel e0f3e6bcf2 winecrt0: Android NDK doesn't have _init and _fini. 2013-03-11 11:44:23 +01:00
Jacek Caban eb51602304 winecrt0: Use atl100.dll directly to create a registrar instance. 2012-11-21 13:37:06 +01:00
Alexandre Julliard b56dc9a6f7 winecrt0: Remove the clsid parameter in __wine_(un)register_resources. 2011-08-02 20:47:49 +02:00
Alexandre Julliard e76db63c02 winecrt0: No longer register typelibs, they use IRegistrar scripts now. 2011-08-02 20:47:49 +02:00
Alexandre Julliard db7f8e5749 makefiles: Make MODULE contain the full module name also for static libraries. 2011-07-09 21:13:36 +02:00
Alexandre Julliard a54692834a winecrt0: Automatically register typelib resources too. 2010-12-08 16:10:44 +01:00
Alexandre Julliard 4d966be69c winecrt0: Add a generic mechanism for dll registration through IRegistrar. 2010-11-24 17:59:41 +01:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Julliard 772112cfcb winecrt0: Add a trampoline function to align the stack on x86_64 before continuing an exception. 2010-04-08 17:34:17 +02:00
Alexandre Julliard 655292ae00 include: Move the exception handling support functions to winecrt0 instead of having them inline. 2010-04-08 17:34:17 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 62e0de5f73 Avoid using wine/port.h in static libraries. 2010-01-23 20:51:27 +01:00
Alexandre Julliard b2d35c3620 winecrt0: Disable the delay import destructor on Mac OS, it cannot be made to work. 2009-04-01 18:13:42 +02:00
Alexandre Julliard 2ef9411434 winecrt0: Don't bother passing the environment to the _init function.
We'd have to use the Windows environment anyway, not the Unix one.
2009-03-31 16:06:11 +02:00
Alexandre Julliard af2e40ea26 winecrt0: Add entry point code for stand-alone 16-bit executables. 2009-02-26 13:23:00 +01:00
Alexandre Julliard d75b0ce452 ntdll: Make sure we don't return from a stub exception. 2008-12-29 12:43:59 +01:00
Alexandre Julliard d230e713b9 winecrt0: Add missing WINAPI on driver entry point. 2008-10-18 12:12:05 +02:00
Rob Shearman 4500836635 makefiles: Simplify the use of the MODULE variable in static import libraries.
Don't include platform-specific information when declaring the name of
the static import libary to build. Instead, add this information in
Makeimplib.rules.in.
2008-03-10 19:12:54 +01:00
Alexandre Julliard b601206129 winecrt0: DriverEntry is a WINAPI function. 2007-12-12 14:39:08 +01:00
Rob Shearman 9f8d379fb3 include: Move Wine-specific EH_* defines from winnt.h to include/wine/exception.h. 2007-12-03 11:54:10 +01:00