From 67e331a88d9dbf7ea088861114131cc3fd100cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 14 Mar 2025 19:25:36 +0100 Subject: [PATCH] [DBGHELP_APITEST] Revert "Fix initializing global variables" commit (#8462) This reverts commit 522e9f6dd34d2934b328041580844b0f4e03969f. --- modules/rostests/apitests/dbghelp/pdb.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/rostests/apitests/dbghelp/pdb.c b/modules/rostests/apitests/dbghelp/pdb.c index ae88fe291f6..f2f22295a9b 100644 --- a/modules/rostests/apitests/dbghelp/pdb.c +++ b/modules/rostests/apitests/dbghelp/pdb.c @@ -15,8 +15,6 @@ #include "wine/test.h" -extern PfnDliHook __pfnDliFailureHook2; - #define ok_ulonglong(expression, result) \ do { \ ULONG64 _value = (expression); \ @@ -219,6 +217,9 @@ FARPROC WINAPI DliFailHook(unsigned dliNotify, PDelayLoadInfo pdli) return NULL; } +/* Register the failure hook */ +PfnDliHook __pfnDliFailureHook2 = DliFailHook; + /* Maybe our dbghelp.dll is too old? */ static BOOL supports_pdb(HANDLE hProc, DWORD64 BaseAddress) { @@ -581,9 +582,6 @@ START_TEST(pdb) init_dbghelp_version(); - /* Register the failure hook using the magic name '__pfnDliFailureHook2'. */ - __pfnDliFailureHook2 = DliFailHook; - if (init_sym(FALSE)) { SetLastError(ERROR_SUCCESS);