From 3955009541ae6654feb2e6ce527fa0037ae56276 Mon Sep 17 00:00:00 2001 From: TheTank20 Date: Wed, 7 May 2025 20:33:47 -0400 Subject: [PATCH] accidentally used a Vista+ function xDDDDDD --- xpmgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpmgr.cpp b/xpmgr.cpp index ec1c7b2..4116176 100644 --- a/xpmgr.cpp +++ b/xpmgr.cpp @@ -532,7 +532,7 @@ static BSTR XP_GetWPALeft() { return SysAllocString(L"An error occurred at GetWPALeft: Windows is activated"); } wchar_t buffer[16]; - swprintf_s(buffer, 16, L"%lu", dwWPALeft); + swprintf(buffer, L"%lu", dwWPALeft); return SysAllocString(buffer); } @@ -559,7 +559,7 @@ static BSTR XP_GetEvalLeft() { return SysAllocString(L"An error occurred at GetEvalLeft: Not an evaluation copy"); } wchar_t buffer[16]; - swprintf_s(buffer, 16, L"%lu", dwWPALeft); + swprintf(buffer, L"%lu", dwWPALeft); return SysAllocString(buffer); }