https://git.reactos.org/?p=reactos.git;a=commitdiff;h=92cf32b433e162298a1c8…
commit 92cf32b433e162298a1c831352b11a68930eeabc
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Fri Sep 11 15:40:47 2020 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Sep 16 10:35:36 2020 +0200
Revert "[DBGHELP] Set LastError for SymGetModuleBase-calls to
ERROR_MOD_NOT_FOUND."
This reverts commit b2bcd8afdd6c47b4a403db4b75272a21dc93c904.
It will be applied later through winesync script
---
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 8a47c152c25..0c3cdda3d65 100644
--- a/dll/win32/dbghelp/module.c
+++ b/dll/win32/dbghelp/module.c
@@ -455,7 +455,7 @@ struct module* module_find_by_addr(const struct process* pcs, DWORD64
addr,
return module;
}
}
- SetLastError(ERROR_MOD_NOT_FOUND);
+ SetLastError(ERROR_INVALID_ADDRESS);
return module;
}