Added GUID_UpdateProxy

This commit is contained in:
Yoshi Askharoun
2021-11-23 01:27:57 -06:00
parent bc95bf58b3
commit 6f7382f7d4
3 changed files with 5 additions and 6 deletions
@@ -23,7 +23,7 @@ namespace Microsoft.Zune.Util
Monitor.Enter(sm_lock);
if (sm_updateManager == null)
{
UpdateManager updateManager = new UpdateManager();
UpdateManager updateManager = new();
Thread.MemoryBarrier();
sm_updateManager = updateManager;
}
@@ -62,7 +62,7 @@ namespace Microsoft.Zune.Util
try
{
Monitor.Enter(sm_lock);
if (Module.GetSingleton((_GUID)Module._GUID_9d21716a_ca61_4e24_a1ba_47b9e70e1e2c, (void**)(&ptr)) >= 0)
if (Module.GetSingleton(Module.GUID_UpdateProxy, (void**)(&ptr)) >= 0)
{
m_spUpdateManager.op_Assign(ptr);
IUpdateManager* p = m_spUpdateManager.p;
@@ -135,7 +135,7 @@ namespace Microsoft.Zune.Util
*(long*)(&cComPtrNtv_003CIUpdateManager_003E) = 0L;
try
{
if (Module.GetSingleton((_GUID)Module._GUID_9d21716a_ca61_4e24_a1ba_47b9e70e1e2c, (void**)(&cComPtrNtv_003CIUpdateManager_003E)) >= 0)
if (Module.GetSingleton(Module.GUID_UpdateProxy, (void**)(&cComPtrNtv_003CIUpdateManager_003E)) >= 0)
{
IUpdateManager* ptr4 = (IUpdateManager*)(*(ulong*)(&cComPtrNtv_003CIUpdateManager_003E));
m_spUpdateManager.op_Assign((IUpdateManager*)(*(ulong*)(&cComPtrNtv_003CIUpdateManager_003E)));
+1
View File
@@ -52,6 +52,7 @@ namespace ZuneDBApi
internal static readonly _GUID GUID_IZuneNetMessaging = new("bf368f0d-4743-439c-9142-e487c9534104");
internal static readonly _GUID GUID_IDownloadManager = new("399f851b-a600-4e88-90c3-03b8f2770076");
internal static readonly _GUID GUID_IPassportIdentity = new("655b468c-1224-467d-b720-3bac7f99b6ba");
internal static readonly _GUID GUID_UpdateProxy = new("9d21716a-ca61-4e24-a1ba-47b9e70e1e2c");
internal static void _ZuneShipAssert(uint v1, uint v2)
{
+1 -3
View File
@@ -21,9 +21,7 @@
<PackageReference Include="Accessibility" Version="4.6.0-preview3-27504-2" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
<!--<ProjectReference Include="..\UIX\UIX.csproj" />-->
<Reference Include="ZuneDBApi">
<HintPath>C:\Program Files\Zune\ZuneDBApi.dll</HintPath>
</Reference>
<ProjectReference Include="..\ZuneDBApi\ZuneDBApi.csproj" />
<Reference Include="UIXControls">
<HintPath>C:\Program Files\Zune\UIXControls.dll</HintPath>
</Reference>