File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -341,11 +341,14 @@ VOID DeviceHVMM_Close(_Inout_ PLC_CONTEXT ctxLC)
341341{
342342 PDEVICE_CONTEXT_HVMM ctx = (PDEVICE_CONTEXT_HVMM )ctxLC -> hDevice ;
343343
344- if (0 == -- g_cDeviceHVMM ) {
345- DeviceHVMM_SvcClose ();
346- }
344+ if (g_cDeviceHVMM > 0 )
345+ g_cDeviceHVMM -= 1 ;
346+
347+ if (g_cDeviceHVMM )
348+ return ;
347349
348- if (ctx ) {
350+ if (ctx )
351+ {
349352 SdkClosePartition ((ULONG64 )ctx -> Partition );
350353
351354 if (ctx -> hFile )
Original file line number Diff line number Diff line change 236236 <AdditionalDependencies >$(SolutionDir)files\hvlib.lib;leechcore.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies >
237237 </Link >
238238 <PostBuildEvent >
239- <Command >copy "$(OutDir)leechcore_device_hvmm.dll" "$(SolutionDir)files" /y</Command >
239+ <Command >copy "$(OutDir)leechcore_device_hvmm.dll" "$(SolutionDir)files\Release " /y</Command >
240240 </PostBuildEvent >
241241 </ItemDefinitionGroup >
242242 <ItemDefinitionGroup Condition =" '$(Configuration)|$(Platform)'=='Release|ARM'" >
You can’t perform that action at this time.
0 commit comments