Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a1ed5008
Commit
a1ed5008
authored
Jul 01, 2018
by
Michał Janiszewski
Committed by
Alexandre Julliard
Jul 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Only set owned bits in RTL_BITMAP.
Signed-off-by:
Michał Janiszewski
<
janisozaur@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
355f6b24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rtlbitmap.c
dlls/ntdll/rtlbitmap.c
+4
-4
No files found.
dlls/ntdll/rtlbitmap.c
View file @
a1ed5008
...
...
@@ -156,8 +156,8 @@ VOID WINAPI RtlSetBits(PRTL_BITMAP lpBits, ULONG ulStart, ULONG ulCount)
/* Set from the start bit, possibly into the next byte also */
USHORT
initialWord
=
NTDLL_maskBits
[
ulCount
]
<<
(
ulStart
&
7
);
*
lpOut
++
|=
(
initialWord
&
0xff
);
*
lpOut
|=
(
initialWord
>>
8
);
*
lpOut
|=
(
initialWord
&
0xff
);
if
(
initialWord
>>
8
)
lpOut
[
1
]
|=
(
initialWord
>>
8
);
return
;
}
}
...
...
@@ -217,8 +217,8 @@ VOID WINAPI RtlClearBits(PRTL_BITMAP lpBits, ULONG ulStart, ULONG ulCount)
/* Clear from the start bit, possibly into the next byte also */
USHORT
initialWord
=
~
(
NTDLL_maskBits
[
ulCount
]
<<
(
ulStart
&
7
));
*
lpOut
++
&=
(
initialWord
&
0xff
);
*
lpOut
&=
(
initialWord
>>
8
);
*
lpOut
&=
(
initialWord
&
0xff
);
if
((
initialWord
>>
8
)
!=
0xff
)
lpOut
[
1
]
&=
(
initialWord
>>
8
);
return
;
}
}
...
...
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