diff options
author | Daniel Neus <[email protected]> | 2016-03-06 11:33:09 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-03-06 11:33:09 +0100 |
commit | 464e9eccbb61738582f85a81dd4b586bd3d6898e (patch) | |
tree | b7fac2f6ef79557f55de1213016e0e576ec5ea28 /src/lib/entropy/win32_stats/es_win32.cpp | |
parent | c4e5802112b4000950aca376ca13cd125085a177 (diff) | |
parent | 027733a7d7ae44e8eb0c96cef371ba592f4cd386 (diff) |
Merge branch 'master' into clang-analyzer
Diffstat (limited to 'src/lib/entropy/win32_stats/es_win32.cpp')
-rw-r--r-- | src/lib/entropy/win32_stats/es_win32.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/entropy/win32_stats/es_win32.cpp b/src/lib/entropy/win32_stats/es_win32.cpp index 7cb0988db..ce0edea83 100644 --- a/src/lib/entropy/win32_stats/es_win32.cpp +++ b/src/lib/entropy/win32_stats/es_win32.cpp @@ -72,7 +72,6 @@ void Win32_EntropySource::poll(Entropy_Accumulator& accum) if(!accum.polling_finished()) { - size_t heap_lists_found = 0; HEAPLIST32 heap_list; heap_list.dwSize = sizeof(HEAPLIST32); @@ -81,6 +80,7 @@ void Win32_EntropySource::poll(Entropy_Accumulator& accum) if(Heap32ListFirst(snapshot, &heap_list)) { + size_t heap_lists_found = 0; do { accum.add(heap_list, BOTAN_ENTROPY_ESTIMATE_SYSTEM_DATA); @@ -88,12 +88,12 @@ void Win32_EntropySource::poll(Entropy_Accumulator& accum) if(++heap_lists_found > HEAP_LISTS_MAX) break; - size_t heap_objs_found = 0; HEAPENTRY32 heap_entry; heap_entry.dwSize = sizeof(HEAPENTRY32); if(Heap32First(&heap_entry, heap_list.th32ProcessID, heap_list.th32HeapID)) { + size_t heap_objs_found = 0; do { if(heap_objs_found++ > HEAP_OBJS_PER_LIST) |