[DBGHELP] Set LastError for SymGetModuleBase-calls to ERROR_MOD_NOT_FOUND.
authorAndreas Maier <staubim@quantentunnel.de>
Thu, 22 Nov 2018 21:14:24 +0000 (22:14 +0100)
committerMark Jansen <mark.jansen@reactos.org>
Fri, 19 Apr 2019 19:09:45 +0000 (21:09 +0200)
Correct last error in module_find_by_addr.

dll/win32/dbghelp/module.c

index 0173469..aaa0ff6 100644 (file)
@@ -417,7 +417,7 @@ struct module* module_find_by_addr(const struct process* pcs, DWORD64 addr,
                 return module;
         }
     }
                 return module;
         }
     }
-    SetLastError(ERROR_INVALID_ADDRESS);
+    SetLastError(ERROR_MOD_NOT_FOUND);
     return module;
 }
 
     return module;
 }