Minor code fixes in order to compile on windows
This commit is contained in:
@@ -50,7 +50,7 @@ namespace OpenVulkano
|
||||
CloseHandle(fileHandle);
|
||||
return;
|
||||
}
|
||||
size = fileSize;
|
||||
size = fileSize.QuadPart;
|
||||
|
||||
fileMappingHandle = CreateFileMapping(
|
||||
fileHandle,
|
||||
@@ -85,7 +85,7 @@ namespace OpenVulkano
|
||||
|
||||
~Internal()
|
||||
{
|
||||
UnmapViewOfFile(lpMapAddress);
|
||||
UnmapViewOfFile(address);
|
||||
CloseHandle(fileMappingHandle);
|
||||
CloseHandle(fileHandle);
|
||||
}
|
||||
@@ -120,7 +120,7 @@ namespace OpenVulkano
|
||||
|
||||
MemMappedFile::MemMappedFile(const std::filesystem::path& path, FileMode fileMode)
|
||||
{
|
||||
m_internal = std::make_shared<Internal>(path.c_str(), fileMode);
|
||||
m_internal = std::make_shared<Internal>(path.string().c_str(), fileMode);
|
||||
m_data = m_internal->address;
|
||||
m_size = (m_data) ? m_internal->size : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user