Skip to content

Commit eaf0fea

Browse files
committed
Add workaround for winsiderss#204
1 parent fbf7047 commit eaf0fea

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

ProcessHacker/actions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ BOOLEAN PhpStartPhSvcProcess(
331331
hWnd,
332332
L"-phsvc",
333333
SW_HIDE,
334-
PH_SHELL_EXECUTE_ADMIN,
334+
PH_SHELL_EXECUTE_ADMIN | PH_SHELL_EXECUTE_NOZONECHECKS,
335335
PH_SHELL_APP_PROPAGATE_PARAMETERS,
336336
0,
337337
NULL
@@ -373,7 +373,7 @@ BOOLEAN PhpStartPhSvcProcess(
373373
fileName->Buffer,
374374
L"-phsvc",
375375
SW_HIDE,
376-
0,
376+
PH_SHELL_EXECUTE_NOZONECHECKS,
377377
PH_SHELL_APP_PROPAGATE_PARAMETERS,
378378
0,
379379
NULL

phlib/include/phutil.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ PhShellExecute(
796796

797797
#define PH_SHELL_EXECUTE_ADMIN 0x1
798798
#define PH_SHELL_EXECUTE_PUMP_MESSAGES 0x2
799+
#define PH_SHELL_EXECUTE_NOZONECHECKS 0x3
799800

800801
PHLIBAPI
801802
BOOLEAN

phlib/util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3360,6 +3360,8 @@ BOOLEAN PhShellExecuteEx(
33603360

33613361
if (Flags & PH_SHELL_EXECUTE_ADMIN)
33623362
info.lpVerb = L"runas";
3363+
if (Flags & PH_SHELL_EXECUTE_NOZONECHECKS)
3364+
info.fMask |= SEE_MASK_NOZONECHECKS;
33633365

33643366
if (ShellExecuteEx(&info))
33653367
{

0 commit comments

Comments
 (0)