Skip to content
Snippets Groups Projects
Commit 4f4dd224 authored by Brad King's avatar Brad King
Browse files

SystemInformation: Fix unused assignment warnings

Fix interaction between local variables and conditional code in methods

 SystemInformationImplementation::GetFullyQualifiedDomainName
 SystemInformationImplementation::GetMemoryTotal
 SystemInformationImplementation::GetMemoryUsed
 SystemInformationImplementation::GetProcessId

to avoid assigning values to local variables that are never used.

While at it, fix GetMemoryUsed() to not leak the OpenProcess handle when
GetProcessMemoryInfo fails.

Change-Id: I582b70c7b4795df6b97bdeafc6328001dc5ce3ee
parent 6b26d2fe
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment