From 358e59ced206dac3fbb7a79fec2950385d285f1c Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Wed, 31 Jul 2024 14:55:44 +0800 Subject: [PATCH] fix --- Sandboxie/core/dll/custom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sandboxie/core/dll/custom.c b/Sandboxie/core/dll/custom.c index 27b933cf..040458bc 100644 --- a/Sandboxie/core/dll/custom.c +++ b/Sandboxie/core/dll/custom.c @@ -1644,7 +1644,7 @@ _FX BOOLEAN Custom_ProductID(void) { if (NT_SUCCESS(status)) { //UNICODE_STRING buf; - WCHAR tmp[24] = { 0 }; + WCHAR tmp[34] = { 0 }; RtlInitUnicodeString(&uni, L"ProductId"); @@ -1654,7 +1654,7 @@ _FX BOOLEAN Custom_ProductID(void) { chain3 = my_rand() % 100000 + 99999, chain4 = my_rand() % 100000 + 99999 ; - Sbie_snwprintf(tmp, 24, L"%05d-%05d-%05d-%05d", chain1, chain2, chain3, chain4); + Sbie_snwprintf(tmp, 34, L"%05d-%05d-%05d-%05d", chain1, chain2, chain3, chain4); //RtlInitUnicodeString(&buf, tmp); /*if (GetIntLen(dwTick) == 1) { //DWORD last = dwTick - (dwTick / 10) * 10;