Return missed return pmc;
(#20118)
This commit is contained in:
parent
7e709a0ecc
commit
78ef7e85c9
@ -29,6 +29,7 @@ namespace MemoryTest {
|
||||
pmc.cb = sizeof(PROCESS_MEMORY_COUNTERS);
|
||||
if (!GetProcessMemoryInfo(GetCurrentProcess(), &pmc, pmc.cb))
|
||||
throw std::runtime_error("Can't get system memory values");
|
||||
return pmc;
|
||||
}
|
||||
|
||||
size_t getVmSizeInKB() {
|
||||
|
@ -39,6 +39,7 @@ static PROCESS_MEMORY_COUNTERS getMemoryInfo() {
|
||||
pmc.cb = sizeof(PROCESS_MEMORY_COUNTERS);
|
||||
if (!GetProcessMemoryInfo(GetCurrentProcess(), &pmc, pmc.cb))
|
||||
throw std::runtime_error("Can't get system memory values");
|
||||
return pmc;
|
||||
}
|
||||
|
||||
size_t getVmSizeInKB() {
|
||||
|
Loading…
Reference in New Issue
Block a user