summaryrefslogtreecommitdiffhomepage
path: root/contrib/npclient/npclient.c
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-10 18:55:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-10 18:55:10 +0100
commit98ef185a5c9075720acb54ec1c2e5fec6e4ab440 (patch)
tree7fdaed1fcc621e6d0c238c882c877766e1bb330c /contrib/npclient/npclient.c
parent676c2ebb6ebaac778969b4610975ed327437eded (diff)
npclient: fix off-by-one
Diffstat (limited to 'contrib/npclient/npclient.c')
-rw-r--r--contrib/npclient/npclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/npclient/npclient.c b/contrib/npclient/npclient.c
index 42919d8f..6ffa7f34 100644
--- a/contrib/npclient/npclient.c
+++ b/contrib/npclient/npclient.c
@@ -598,7 +598,7 @@ static bool FTCreateMapping(void)
hFTMemMap = CreateFileMappingA(INVALID_HANDLE_VALUE, 0, PAGE_READWRITE, 0, sizeof(FTMemMap), (LPCSTR) FT_MM_DATA);
pMemData = (FTMemMap *) MapViewOfFile(hFTMemMap, FILE_MAP_WRITE, 0, 0, sizeof(FTMemMap));
if (pMemData != NULL)
- pMemData->data.DataID = 0;
+ pMemData->data.DataID = 1;
return pMemData != NULL;
}