[DBGHELP] Set LastError for SymGetModuleBase-calls to ERROR_MOD_NOT_FOUND.

Correct last error in module_find_by_addr.
This commit is contained in:
Andreas Maier 2018-11-22 22:14:24 +01:00 committed by Mark Jansen
parent 6175044aed
commit b2bcd8afdd
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -417,7 +417,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;
}