File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ BOOLEAN PhpStartPhSvcProcess(
331
331
hWnd ,
332
332
L"-phsvc" ,
333
333
SW_HIDE ,
334
- PH_SHELL_EXECUTE_ADMIN ,
334
+ PH_SHELL_EXECUTE_ADMIN | PH_SHELL_EXECUTE_NOZONECHECKS ,
335
335
PH_SHELL_APP_PROPAGATE_PARAMETERS ,
336
336
0 ,
337
337
NULL
@@ -373,7 +373,7 @@ BOOLEAN PhpStartPhSvcProcess(
373
373
fileName -> Buffer ,
374
374
L"-phsvc" ,
375
375
SW_HIDE ,
376
- 0 ,
376
+ PH_SHELL_EXECUTE_NOZONECHECKS ,
377
377
PH_SHELL_APP_PROPAGATE_PARAMETERS ,
378
378
0 ,
379
379
NULL
Original file line number Diff line number Diff line change @@ -796,6 +796,7 @@ PhShellExecute(
796
796
797
797
#define PH_SHELL_EXECUTE_ADMIN 0x1
798
798
#define PH_SHELL_EXECUTE_PUMP_MESSAGES 0x2
799
+ #define PH_SHELL_EXECUTE_NOZONECHECKS 0x3
799
800
800
801
PHLIBAPI
801
802
BOOLEAN
Original file line number Diff line number Diff line change @@ -3360,6 +3360,8 @@ BOOLEAN PhShellExecuteEx(
3360
3360
3361
3361
if (Flags & PH_SHELL_EXECUTE_ADMIN )
3362
3362
info .lpVerb = L"runas" ;
3363
+ if (Flags & PH_SHELL_EXECUTE_NOZONECHECKS )
3364
+ info .fMask |= SEE_MASK_NOZONECHECKS ;
3363
3365
3364
3366
if (ShellExecuteEx (& info ))
3365
3367
{
You can’t perform that action at this time.
0 commit comments