From 9ce2e578bbc39b32d2faeef552739ad7e881607d Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 30 Jan 2025 13:44:18 +0100 Subject: [PATCH] Win: Test ExpandEnvironmentStringsA Signed-off-by: Simon Rozman --- include/WinStd/Win.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/WinStd/Win.h b/include/WinStd/Win.h index 2fae240b..4935c954 100644 --- a/include/WinStd/Win.h +++ b/include/WinStd/Win.h @@ -159,8 +159,6 @@ static _Success_(return != 0) BOOL GetFileVersionInfoW(_In_z_ LPCWSTR lptstrFile template static _Success_(return != 0) DWORD ExpandEnvironmentStringsA(_In_z_ LPCSTR lpSrc, _Out_ std::basic_string &sValue) { - assert(0); // TODO: Test this code. - for (SIZE_T sSizeOut = SIZETAdd(strlen(lpSrc), 0x100);;) { if (sSizeOut > DWORD_MAX) throw std::invalid_argument("String too big");