[PATCH 4/5] [DBGHELP 4/5] Set last error for SymGetModuleBase-calls to ERROR_MOD_NOT_FOUND.

Andreas Maier staubim at quantentunnel.de
Sun Nov 25 03:15:49 CST 2018


Correct last error in module_find_by_addr.

Signed-off-by: Andreas Maier <staubim at quantentunnel.de>
---
 dlls/dbghelp/module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dbghelp/module.c b/dlls/dbghelp/module.c
index 98fc10c029..cfbb58683f 100644
--- a/dlls/dbghelp/module.c
+++ b/dlls/dbghelp/module.c
@@ -436,7 +436,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;
 }
 
-- 
2.11.0




More information about the wine-devel mailing list