* minidumper.cc (minidump): Fix copy and paste error in checking

result of OpenProcess().
This commit is contained in:
Jon TURNEY 2014-04-21 12:02:59 +00:00
parent 98c9a93c7d
commit 638f0ebf90
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-04-21 Jon TURNEY <jon.turney@dronecode.org.uk>
* minidumper.cc (minidump): Fix copy and paste error in checking
result of OpenProcess().
2014-02-24 Corinna Vinschen <corinna@vinschen.de>
* mkgroup.c (domlist_t): Drop id_offset.

View File

@ -79,7 +79,7 @@ minidump(DWORD pid, MINIDUMP_TYPE dump_type, const char *minidump_file)
process = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ | PROCESS_TERMINATE,
FALSE,
pid);
if (dump_file == INVALID_HANDLE_VALUE)
if (process == NULL)
{
fprintf (stderr, "error opening process\n");
return;