Skip to content

Commit

Permalink
Use wide character version of CreateFileMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
nir9 authored Jun 15, 2024
1 parent a883f9a commit 3a6c1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ HANDLE mapHandle = NULL;
bool readOrWriteToSharedMemory(DWORD write, DWORD* read) {
bool succeeded = false;

mapHandle = CreateFileMapping(
mapHandle = CreateFileMappingW(
INVALID_HANDLE_VALUE,
NULL,
PAGE_READWRITE,
0,
sizeof(DWORD),
"LightWMThreadId"
L"LightWMThreadId"
);

if (mapHandle == NULL) {
Expand Down

0 comments on commit 3a6c1df

Please sign in to comment.