From: Andreas Maier Date: Thu, 22 Nov 2018 21:14:24 +0000 (+0100) Subject: [DBGHELP] Set LastError for SymGetModuleBase-calls to ERROR_MOD_NOT_FOUND. X-Git-Tag: 0.4.14-dev~1166 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=b2bcd8afdd6c47b4a403db4b75272a21dc93c904 [DBGHELP] Set LastError for SymGetModuleBase-calls to ERROR_MOD_NOT_FOUND. Correct last error in module_find_by_addr. --- 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; }