Commit e1f41c0a authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp/tests: Preserve last error in process_get_kind().

parent 2d3b6d03
......@@ -564,7 +564,7 @@ enum process_kind
PCSKIND_WOW64, /* Wine "new" wow64 configuration, and Windows with wow64 support */
};
static enum process_kind get_process_kind(HANDLE process)
static enum process_kind get_process_kind_internal(HANDLE process)
{
USHORT m1, m2;
......@@ -601,6 +601,14 @@ static enum process_kind get_process_kind(HANDLE process)
return PCSKIND_ERROR;
}
static enum process_kind get_process_kind(HANDLE process)
{
DWORD gle = GetLastError();
enum process_kind pcskind = get_process_kind_internal(process);
SetLastError(gle);
return pcskind;
}
struct loaded_module_aggregation
{
HANDLE proc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment