From 832d631060a889deb2ff4232209025a14f2f07a8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 9 Dec 2017 17:41:39 +0100 Subject: contrib/npclient: fix race --- contrib/very-important-source-code/npclient.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/very-important-source-code/npclient.c b/contrib/very-important-source-code/npclient.c index d635069c..b991dc35 100644 --- a/contrib/very-important-source-code/npclient.c +++ b/contrib/very-important-source-code/npclient.c @@ -295,7 +295,8 @@ NP_EXPORT(int) NP_GetData(tir_data_t * data) ty = pMemData->data.Y; tz = pMemData->data.Z; - if (!bEncryptionChecked) { + if (pMemData->GameId == pMemData->GameId2 && !bEncryptionChecked) + { dbg_report("NP_GetData: game = %d\n", pMemData->GameId); memcpy(table, pMemData->table, 8); for (i = 0; i < 8; i++) -- cgit v1.2.3