From a4ff95614a56e55ff2f950cbbba77b3bc1ffa330 Mon Sep 17 00:00:00 2001 From: wj32 Date: Mon, 31 Jan 2011 05:16:55 +0000 Subject: [PATCH] fixed style git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4063 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- 2.x/trunk/plugins/ExtendedTools/memlists.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/2.x/trunk/plugins/ExtendedTools/memlists.c b/2.x/trunk/plugins/ExtendedTools/memlists.c index 52cf8dd90..19e47c717 100644 --- a/2.x/trunk/plugins/ExtendedTools/memlists.c +++ b/2.x/trunk/plugins/ExtendedTools/memlists.c @@ -238,12 +238,14 @@ INT_PTR CALLBACK EtpMemoryListsDlgProc( RtlReleasePrivilege(returnedState); } - if (status == 0xc0000061 /* STATUS_PRIVILEGE_NOT_HELD */) - { - PhShowError(hwndDlg, L"Process Hacker must be elevated to execute this command."); - } - else if (!NT_SUCCESS(status)) + if (status == STATUS_PRIVILEGE_NOT_HELD) + { + PhShowError(hwndDlg, L"Process Hacker must be elevated to execute this command."); + } + else if (!NT_SUCCESS(status)) + { PhShowStatus(hwndDlg, L"Unable to execute the memory list command", status, 0); + } } DestroyMenu(menu);