Skip to content

Commit d1fb725

Browse files
committed
Fix shm not reading
1 parent f16abdd commit d1fb725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/slick_queue/slick_queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class SlickQueue {
227227
throw std::runtime_error("Failed to open shm. err=" + std::to_string(err));
228228
}
229229

230-
lpvMem_ = MapViewOfFile(hMapFile_, FILE_MAP_ALL_ACCESS, 0, 0, 64);
230+
lpvMem_ = MapViewOfFile(hMapFile_, FILE_MAP_ALL_ACCESS, 0, 0, BF_SZ);
231231
if (!lpvMem_) {
232232
auto err = GetLastError();
233233
throw std::runtime_error("Failed to map shm. err=" + std::to_string(err));

0 commit comments

Comments
 (0)