Process Hacker Discussion Forum

 
User avatar
diversenok
Contributor
Posts: 49
Joined: 26 Jun 2017 17:55
OS: Windows 7 x64
Contact:

Deletion of environmental variables

03 Dec 2017 12:43

:arrow:  Windows 7 x64
:arrow:  Process Hacker 3.0.1118

Briefly:
If you try to delete an environmental variable for some process and this operation occurs to be unsuccessful no error message will be displayed.

Expected behavior:
To show an error message, just like what happens when you try to edit this variable instead of deleting it.
Environmental.png
Environmental.png (6.58 KiB) Viewed 2475 times
How to reproduce:
The simplest way is to create a new process with CREATE_SUSPENDED flag and try to delete some of its environmental variables in this suspended state.
 
User avatar
dmex
Admin
Posts: 1700
Joined: 17 Jan 2011 05:43

Re: Deletion of environmental variables

09 Dec 2017 09:01

I've added some extra error checking in recent nightly builds. Does deleting a variable now show an error dialog?
 
User avatar
diversenok
Contributor
Posts: 49
Joined: 26 Jun 2017 17:55
OS: Windows 7 x64
Contact:

Re: Deletion of environmental variables

14 Dec 2017 19:57

Now everything works fine. Thanks :thumbup: