Skip to content

Commit

Permalink
Bug 1533889 - Investigate OpenProcess failures r=mconley
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D29571

--HG--
extra : moz-landing-system : lando
  • Loading branch information
gabrielesvelto committed May 2, 2019
1 parent 8d9ae81 commit 18fbf9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hal/windows/WindowsProcessPriority.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ void SetProcessPriority(int aPid, ProcessPriority aPriority) {

nsAutoHandle processHandle(
::OpenProcess(PROCESS_SET_INFORMATION, FALSE, aPid));
#ifdef DEBUG
if (!processHandle) {
printf_stderr("::OpenProcess() failed with error %#08x\n",
::GetLastError());
}
#endif // DEBUG
MOZ_ASSERT(processHandle);
if (processHandle) {
DWORD priority = NORMAL_PRIORITY_CLASS;
Expand Down

0 comments on commit 18fbf9f

Please sign in to comment.