Skip to content

Commit e6bed5f

Browse files
authored
Merge pull request #33 from microsoft/rs4_mount
Fix to mounting on RS4 (ProjFS beta API).
2 parents 2bfb802 + dc5493a commit e6bed5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ProjectedFSLib.Managed.API/VirtualizationInstance.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ HResult VirtualizationInstance::StartVirtualizing(IRequiredCallbacks^ requiredCa
504504
pin_ptr<const WCHAR> rootPath = PtrToStringChars(m_virtualizationRootPath);
505505

506506
// Use a temp location to avoid e0158.
507-
auto tempHandle = reinterpret_cast<PRJ_VIRTUALIZATIONINSTANCE_HANDLE>(m_virtualizationContext);
508-
pin_ptr<PRJ_VIRTUALIZATIONINSTANCE_HANDLE> instanceHandle = &tempHandle;
507+
pin_ptr<PRJ_NAMESPACE_VIRTUALIZATION_CONTEXT> tempHandle = &(m_virtualizationContext);
508+
auto instanceHandle = reinterpret_cast<PRJ_VIRTUALIZATIONINSTANCE_HANDLE*>(tempHandle);
509509

510510
VIRTUALIZATION_INST_EXTENDED_PARAMETERS extendedParameters;
511511
memset(&extendedParameters, 0, sizeof(VIRTUALIZATION_INST_EXTENDED_PARAMETERS));

0 commit comments

Comments
 (0)