[DBGHELP_APITEST] Revert "Fix initializing global variables" commit (#8462)

This reverts commit 522e9f6dd3.
This commit is contained in:
Hermès Bélusca-Maïto
2025-03-14 19:25:36 +01:00
parent 2593cea230
commit 67e331a88d

View File

@@ -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);