mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-28 05:11:37 +00:00
vcpkg, memory mapped file.
This commit is contained in:
parent
3a5a0142cc
commit
48bc79f6b1
2 changed files with 4 additions and 4 deletions
|
|
@ -97,7 +97,7 @@ bool MemoryMappedFile::open(const std::filesystem::path &path)
|
||||||
if (fileSize == (off_t)(-1))
|
if (fileSize == (off_t)(-1))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "lseek failed with error %s.\n", strerror(errno));
|
fprintf(stderr, "lseek failed with error %s.\n", strerror(errno));
|
||||||
close(fileHandle);
|
::close(fileHandle);
|
||||||
fileHandle = -1;
|
fileHandle = -1;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -106,7 +106,7 @@ bool MemoryMappedFile::open(const std::filesystem::path &path)
|
||||||
if (fileView == MAP_FAILED)
|
if (fileView == MAP_FAILED)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "mmap failed with error %s.\n", strerror(errno));
|
fprintf(stderr, "mmap failed with error %s.\n", strerror(errno));
|
||||||
close(fileHandle);
|
::close(fileHandle);
|
||||||
fileHandle = -1;
|
fileHandle = -1;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -140,7 +140,7 @@ void MemoryMappedFile::close()
|
||||||
|
|
||||||
if (fileHandle != -1)
|
if (fileHandle != -1)
|
||||||
{
|
{
|
||||||
close(fileHandle);
|
::close(fileHandle);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
thirdparty/vcpkg
vendored
2
thirdparty/vcpkg
vendored
|
|
@ -1 +1 @@
|
||||||
Subproject commit e63bd09dc0b7204467705c1c7c71d0e2a3f8860b
|
Subproject commit 5b55679a998403bcd570c0eb867a8bd378f21bcb
|
||||||
Loading…
Add table
Reference in a new issue