From 8937c5be863eab16c1c5385550399330598797e9 Mon Sep 17 00:00:00 2001 From: KimLS Date: Sat, 23 Feb 2013 01:32:05 -0800 Subject: [PATCH] Fix for mmf failing on linux (relies on size_ which wasn't init properly on one of the constructors, now is) --- common/memory_mapped_file.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/memory_mapped_file.cpp b/common/memory_mapped_file.cpp index 357c3fa5d..69c60fb6b 100644 --- a/common/memory_mapped_file.cpp +++ b/common/memory_mapped_file.cpp @@ -110,6 +110,7 @@ namespace EQEmu { } fseek(f, 0U, SEEK_END); uint32 size = static_cast(ftell(f)) - sizeof(shared_memory_struct); + size_ = size; fclose(f); #ifdef _WINDOWS