From aa98d91d5daf0144897e110a9f93501146e184ce Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sun, 28 Jul 2024 21:37:56 +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 0eab55f5..a9df1d81 100644 --- a/Sandboxie/core/dll/custom.c +++ b/Sandboxie/core/dll/custom.c @@ -1583,7 +1583,7 @@ static int GetIntLen(DWORD n) { static unsigned long seed = 1; int my_rand(void) { - seed = seed * 214013L + seed = (seed * 214013L + 2531011L) >> 16; return((unsigned)seed & 0x7fff); } @@ -1627,7 +1627,7 @@ int my_rand(void) }*/ _FX BOOLEAN Custom_ProductID(void) { - if (SbieApi_QueryConfBool(NULL, L"RandomProductId", FALSE) { + if (SbieApi_QueryConfBool(NULL, L"RandomProductId", FALSE)) { NTSTATUS status; UNICODE_STRING uni; OBJECT_ATTRIBUTES objattrs;