Skip to content

Commit

Permalink
Comment out RoGetActivationFactory implementation because YY-Thunks (…
Browse files Browse the repository at this point in the history
…which the new VC-LTL depends) have that wrapper.
  • Loading branch information
MouriNaruto committed May 29, 2024
1 parent 318b7e5 commit 5faa21c
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions NanaZip.Frieren/NanaZip.Frieren.RuntimeObjectWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace
return CachedResult;
}

static FARPROC GetRoGetActivationFactoryProcAddress()
/*static FARPROC GetRoGetActivationFactoryProcAddress()
{
static FARPROC CachedResult = ([]() -> FARPROC
{
Expand All @@ -43,7 +43,7 @@ namespace
}());
return CachedResult;
}
}*/

static FARPROC GetRoOriginateLanguageExceptionProcAddress()
{
Expand Down Expand Up @@ -157,24 +157,24 @@ namespace
}
}

EXTERN_C HRESULT WINAPI RoGetActivationFactory(
_In_ HSTRING activatableClassId,
_In_ REFIID iid,
_Out_ LPVOID* factory)
{
using ProcType = decltype(::RoGetActivationFactory)*;

ProcType ProcAddress = reinterpret_cast<ProcType>(
::GetRoGetActivationFactoryProcAddress());

if (ProcAddress)
{
return ProcAddress(activatableClassId, iid, factory);
}

*factory = nullptr;
return CLASS_E_CLASSNOTAVAILABLE;
}
//EXTERN_C HRESULT WINAPI RoGetActivationFactory(
// _In_ HSTRING activatableClassId,
// _In_ REFIID iid,
// _Out_ LPVOID* factory)
//{
// using ProcType = decltype(::RoGetActivationFactory)*;
//
// ProcType ProcAddress = reinterpret_cast<ProcType>(
// ::GetRoGetActivationFactoryProcAddress());
//
// if (ProcAddress)
// {
// return ProcAddress(activatableClassId, iid, factory);
// }
//
// *factory = nullptr;
// return CLASS_E_CLASSNOTAVAILABLE;
//}

EXTERN_C BOOL WINAPI RoOriginateLanguageException(
_In_ HRESULT error,
Expand Down

0 comments on commit 5faa21c

Please sign in to comment.