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

Signed-off-by: Andreas Maier <staubim@quantentunnel.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andreas Maier 2018-11-25 10:15:49 +01:00 committed by Alexandre Julliard
parent 8d096fb5e2
commit 6c3418914d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}