mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-16 18:18:04 +02:00
Audio fix for 24H2
This commit is contained in:
@@ -304,11 +304,15 @@ If,ExistFile,"%TargetSystem32%\AudioSrvPolicyManager.dll",Begin
|
|||||||
ShellExecute,Hide,"%Tools%\%HostArch%\binmay.exe","-v -u #$q%TargetSystem32%\AudioSrvPolicyManager.dll#$q -s FB010F849200000085DB -r FB01E9930000000085DB"
|
ShellExecute,Hide,"%Tools%\%HostArch%\binmay.exe","-v -u #$q%TargetSystem32%\AudioSrvPolicyManager.dll#$q -s FB010F849200000085DB -r FB01E9930000000085DB"
|
||||||
If,Not,#r,Equal,0,Echo,"ERROR: Patching [%TargetSystem32%\AudioSrvPolicyManager.dll] failed. Audio may not be available under the SYSTEM session. The error returned was [#r].",WARN
|
If,Not,#r,Equal,0,Echo,"ERROR: Patching [%TargetSystem32%\AudioSrvPolicyManager.dll] failed. Audio may not be available under the SYSTEM session. The error returned was [#r].",WARN
|
||||||
End
|
End
|
||||||
Else,Begin
|
Else,If,%AudioSrvPolicyManagerVersion%,Smaller,10.0.26100.1150,Begin
|
||||||
// 10.0.22621.1485+
|
|
||||||
ShellExecute,Hide,"%Tools%\%HostArch%\binmay.exe","-v -u #$q%TargetSystem32%\AudioSrvPolicyManager.dll#$q -s 83FF017426 -r 83FF01EB26"
|
ShellExecute,Hide,"%Tools%\%HostArch%\binmay.exe","-v -u #$q%TargetSystem32%\AudioSrvPolicyManager.dll#$q -s 83FF017426 -r 83FF01EB26"
|
||||||
If,Not,#r,Equal,0,Echo,"ERROR: Patching [%TargetSystem32%\AudioSrvPolicyManager.dll] failed. Audio may not be available under the SYSTEM session. The error returned was [#r].",WARN
|
If,Not,#r,Equal,0,Echo,"ERROR: Patching [%TargetSystem32%\AudioSrvPolicyManager.dll] failed. Audio may not be available under the SYSTEM session. The error returned was [#r].",WARN
|
||||||
End
|
End
|
||||||
|
Else,Begin
|
||||||
|
// 24H2 - 10.0.26100.1150+
|
||||||
|
ShellExecute,Hide,"%Tools%\%HostArch%\binmay.exe","-v -u #$q%TargetSystem32%\AudioSrvPolicyManager.dll#$q -s 7427488B4DD8488365D8004885C9740C -r EB27488B4DD8488365D8004885C9740C"
|
||||||
|
If,Not,#r,Equal,0,Echo,"ERROR: Patching [%TargetSystem32%\AudioSrvPolicyManager.dll] failed. Audio may not be available under the SYSTEM session. The error returned was [#r].",WARN
|
||||||
|
End
|
||||||
End
|
End
|
||||||
|
|
||||||
// Warn if AudioSrvPolicyManager.dll version is unverified, as the patch will most likely fail to find a match
|
// Warn if AudioSrvPolicyManager.dll version is unverified, as the patch will most likely fail to find a match
|
||||||
|
Reference in New Issue
Block a user