Return missed return pmc; (#20118)

This commit is contained in:
Vitaliy Urusovskij 2023-10-02 14:01:18 +04:00 committed by GitHub
parent 7e709a0ecc
commit 78ef7e85c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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() {

View File

@ -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() {