Win: Test ExpandEnvironmentStringsA
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
d3f8439118
commit
9ce2e578bb
@ -159,8 +159,6 @@ static _Success_(return != 0) BOOL GetFileVersionInfoW(_In_z_ LPCWSTR lptstrFile
|
||||
template<class _Traits, class _Ax>
|
||||
static _Success_(return != 0) DWORD ExpandEnvironmentStringsA(_In_z_ LPCSTR lpSrc, _Out_ std::basic_string<char, _Traits, _Ax> &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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user