Mo stuffs
This commit is contained in:
@@ -534,14 +534,14 @@ private:
|
|||||||
HandleFileInformation->nFileSizeHigh = find.nFileSizeHigh;
|
HandleFileInformation->nFileSizeHigh = find.nFileSizeHigh;
|
||||||
HandleFileInformation->nFileSizeLow = find.nFileSizeLow;
|
HandleFileInformation->nFileSizeLow = find.nFileSizeLow;
|
||||||
|
|
||||||
FindClose(findHandle);
|
::FindClose(findHandle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opened)
|
if (opened)
|
||||||
{
|
{
|
||||||
CloseHandle(handle);
|
::CloseHandle(handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -895,7 +895,6 @@ public:
|
|||||||
_mountStatus = DokanMain(&_dokanOptions, &_dokanOps);
|
_mountStatus = DokanMain(&_dokanOptions, &_dokanOps);
|
||||||
OutputDebugString(std::to_wstring(_mountStatus).c_str());
|
OutputDebugString(std::to_wstring(_mountStatus).c_str());
|
||||||
}));
|
}));
|
||||||
_mountThread->detach();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -903,7 +902,8 @@ public:
|
|||||||
{
|
{
|
||||||
if (_mountThread)
|
if (_mountThread)
|
||||||
{
|
{
|
||||||
DokanUnmount(_mountPoint[0]);
|
DokanRemoveMountPoint(&_mountPoint[0]);
|
||||||
|
_mountThread->join();
|
||||||
_mountThread.reset(nullptr);
|
_mountThread.reset(nullptr);
|
||||||
_mountPoint = "";
|
_mountPoint = "";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user