From 49ee0f58e8e1f993c2fb91c088bc88a373c16e02 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 27 Dec 2021 15:01:47 +0100 Subject: [PATCH] winecrt0: Check __WINE_PE_BUILD instead of compiler macros. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52287 Signed-off-by: Alexandre Julliard --- dlls/winecrt0/register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winecrt0/register.c b/dlls/winecrt0/register.c index ce4167b9647..757e424fed5 100644 --- a/dlls/winecrt0/register.c +++ b/dlls/winecrt0/register.c @@ -31,7 +31,7 @@ static inline void *image_base(void) { -#if defined(__MINGW32__) || defined(_MSC_VER) +#ifdef __WINE_PE_BUILD extern IMAGE_DOS_HEADER __ImageBase; return (void *)&__ImageBase; #else