Create shared memory in local session namespace

This commit is contained in:
akiroz 2022-05-04 21:50:57 +08:00
parent 836ee62c93
commit 7d92da876a
No known key found for this signature in database
GPG Key ID: 8A5957C4A2F68ACC

View File

@ -84,7 +84,7 @@ fn tasoller_init() !void {
if(cfg.?.chusan == 1) { if(cfg.?.chusan == 1) {
std.log.info("[chuniio] Initializing mode: chusan", .{}); std.log.info("[chuniio] Initializing mode: chusan", .{});
const szName = W("Global\\ChuniioTasoller"); const szName = W("Local\\ChuniioTasoller");
const hMapFile = CreateFileMapping(INVALID_HANDLE_VALUE, null, PAGE_READWRITE, 0, 0x24, szName) orelse { const hMapFile = CreateFileMapping(INVALID_HANDLE_VALUE, null, PAGE_READWRITE, 0, 0x24, szName) orelse {
std.log.err("[chuniio] CreateFileMapping: {any}", .{GetLastError()}); std.log.err("[chuniio] CreateFileMapping: {any}", .{GetLastError()});
return error.AccessError; return error.AccessError;