Andreas Maier : dbghelp: Set last error for SymGetModuleBase-calls to ERROR_MOD_NOT_FOUND.

Alexandre Julliard julliard at winehq.org
Mon Nov 26 16:20:10 CST 2018


Module: wine
Branch: master
Commit: 6c3418914df3196bf5a464649ef302a5e942dd90
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6c3418914df3196bf5a464649ef302a5e942dd90

Author: Andreas Maier <staubim at quantentunnel.de>
Date:   Sun Nov 25 10:15:49 2018 +0100

dbghelp: Set last error for SymGetModuleBase-calls to ERROR_MOD_NOT_FOUND.

Signed-off-by: Andreas Maier <staubim at quantentunnel.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 98fc10c..cfbb586 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;
 }
 




More information about the wine-cvs mailing list