Skip to content

Commit

Permalink
Removing truncation of DFIR-OrcComputer environment variable (carryin…
Browse files Browse the repository at this point in the history
…g /computer value to children).
  • Loading branch information
jgautier-anssi committed Aug 20, 2020
1 parent a1c104c commit c7623da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OrcLib/SystemDetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1564,8 +1564,8 @@ HRESULT SystemDetails::LoadSystemDetails()
}
g_pDetailsBlock->strFullComputerName.assign(szFullComputerName, dwFullBufLen);

WCHAR szOrcComputerName[MAX_COMPUTERNAME_LENGTH + 1];
DWORD dwOrcBufLen = MAX_COMPUTERNAME_LENGTH + 1;
WCHAR szOrcComputerName[MAX_PATH + 1];
DWORD dwOrcBufLen = MAX_PATH + 1;

auto dwOrcComputerName = GetEnvironmentVariableW(OrcComputerName, szOrcComputerName, dwOrcBufLen);
if (dwOrcComputerName > 0)
Expand Down

0 comments on commit c7623da

Please sign in to comment.