windows compilation fix round 2
This commit is contained in:
parent
785471745c
commit
9dee2eee5f
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ static managed_mapped_file::segment_manager* segmentManager()
|
|||
{
|
||||
fs::remove(file);
|
||||
auto size = (uint64_t)g_memfileSize * 1024ULL * 1024ULL * 1024ULL;
|
||||
menaged_file.reset(new managed_mapped_file(bip::create_only, file.c_str(), size));
|
||||
// using string() to remove w_char filename encoding on Windows
|
||||
menaged_file.reset(new managed_mapped_file(bip::create_only, file.string().c_str(), size));
|
||||
}
|
||||
~CSharedMemoryFile()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue