1
0

Mo stuffs

This commit is contained in:
Scott E. Graves
2017-03-22 17:34:15 -05:00
parent 3295c413bc
commit 0f78d38ccb

View File

@@ -534,14 +534,14 @@ private:
HandleFileInformation->nFileSizeHigh = find.nFileSizeHigh;
HandleFileInformation->nFileSizeLow = find.nFileSizeLow;
FindClose(findHandle);
::FindClose(findHandle);
}
}
}
if (opened)
{
CloseHandle(handle);
::CloseHandle(handle);
}
}
@@ -895,7 +895,6 @@ public:
_mountStatus = DokanMain(&_dokanOptions, &_dokanOps);
OutputDebugString(std::to_wstring(_mountStatus).c_str());
}));
_mountThread->detach();
}
}
@@ -903,7 +902,8 @@ public:
{
if (_mountThread)
{
DokanUnmount(_mountPoint[0]);
DokanRemoveMountPoint(&_mountPoint[0]);
_mountThread->join();
_mountThread.reset(nullptr);
_mountPoint = "";
}