From b2bcd8afdd6c47b4a403db4b75272a21dc93c904 Mon Sep 17 00:00:00 2001 From: Andreas Maier Date: Thu, 22 Nov 2018 22:14:24 +0100 Subject: [PATCH] [DBGHELP] Set LastError for SymGetModuleBase-calls to ERROR_MOD_NOT_FOUND. Correct last error in module_find_by_addr. --- dll/win32/dbghelp/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/dbghelp/module.c b/dll/win32/dbghelp/module.c index 0173469bd6e..aaa0ff6f987 100644 --- a/dll/win32/dbghelp/module.c +++ b/dll/win32/dbghelp/module.c @@ -417,7 +417,7 @@ struct module* module_find_by_addr(const struct process* pcs, DWORD64 addr, return module; } } - SetLastError(ERROR_INVALID_ADDRESS); + SetLastError(ERROR_MOD_NOT_FOUND); return module; }