Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plugins
pidgin-otr
Commits
cd08d59e
Commit
cd08d59e
authored
Aug 21, 2012
by
Jacob Appelbaum
Browse files
Add required win32 patch to git tree; see INSTALL.mingw
parent
1c04ef7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
patches/win32/rndw32.diff
0 → 100644
View file @
cd08d59e
--- rndw32.c.orig 2003-12-11 10:46:12.000000000 -0500
+++ rndw32.c 2005-01-18 09:45:26.000000000 -0500
@@ -238,6 +238,8 @@
/* Walk through the local heap */
{ HEAPLIST32 hl32;
+ DWORD dwHeapsAdded = 0;
+ const DWORD maxHeapsToAdd = 500;
hl32.dwSize = sizeof (HEAPLIST32);
if (pHeap32ListFirst (hSnapshot, &hl32)) {
if ( debug_me )
@@ -254,12 +256,16 @@
if (pHeap32First (&he32, hl32.th32ProcessID, hl32.th32HeapID)){
do {
(*add) ( &he32, sizeof (he32), requester );
+ if (++dwHeapsAdded == maxHeapsToAdd) {
+ goto doneheap;
+ }
} while (pHeap32Next (&he32));
}
} while (pHeap32ListNext (hSnapshot, &hl32));
}
}
+doneheap:
/* Walk through all processes */
{ PROCESSENTRY32 pe32;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment