mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 05:51:26 +08:00
[DBGHELP_APITEST] Revert "Fix initializing global variables" commit (#8462)
This reverts commit 522e9f6dd3.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user