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
c36a154e
Commit
c36a154e
authored
Oct 24, 1998
by
Uwe Bonnes
Committed by
Alexandre Julliard
Oct 24, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More off-by-one errors fixed.
parent
a370ab4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
handle.c
scheduler/handle.c
+5
-5
No files found.
scheduler/handle.c
View file @
c36a154e
...
...
@@ -198,7 +198,7 @@ BOOL32 HANDLE_SetObjPtr( PDB32 *pdb, HANDLE32 handle, K32OBJ *ptr,
BOOL32
ret
=
FALSE
;
SYSTEM_LOCK
();
if
((
handle
>
0
)
&&
(
handle
<
=
pdb
->
handle_table
->
count
))
if
((
handle
>
0
)
&&
(
handle
<
pdb
->
handle_table
->
count
))
{
HANDLE_ENTRY
*
entry
=
&
pdb
->
handle_table
->
entries
[
handle
];
K32OBJ
*
old_ptr
=
entry
->
ptr
;
...
...
@@ -222,7 +222,7 @@ static BOOL32 HANDLE_GetAccess( PDB32 *pdb, HANDLE32 handle, LPDWORD access )
BOOL32
ret
=
FALSE
;
SYSTEM_LOCK
();
if
((
handle
>
0
)
&&
(
handle
<
=
pdb
->
handle_table
->
count
))
if
((
handle
>
0
)
&&
(
handle
<
pdb
->
handle_table
->
count
))
{
HANDLE_ENTRY
*
entry
=
&
pdb
->
handle_table
->
entries
[
handle
];
if
(
entry
->
ptr
)
...
...
@@ -246,7 +246,7 @@ static BOOL32 HANDLE_Close( PDB32 *pdb, HANDLE32 handle )
K32OBJ
*
ptr
;
SYSTEM_LOCK
();
if
((
handle
>
0
)
&&
(
handle
<
=
pdb
->
handle_table
->
count
))
if
((
handle
>
0
)
&&
(
handle
<
pdb
->
handle_table
->
count
))
{
HANDLE_ENTRY
*
entry
=
&
pdb
->
handle_table
->
entries
[
handle
];
if
((
ptr
=
entry
->
ptr
))
...
...
@@ -314,7 +314,7 @@ BOOL32 WINAPI GetHandleInformation( HANDLE32 handle, LPDWORD flags )
PDB32
*
pdb
=
PROCESS_Current
();
SYSTEM_LOCK
();
if
((
handle
>
0
)
&&
(
handle
<
=
pdb
->
handle_table
->
count
))
if
((
handle
>
0
)
&&
(
handle
<
pdb
->
handle_table
->
count
))
{
HANDLE_ENTRY
*
entry
=
&
pdb
->
handle_table
->
entries
[
handle
];
if
(
entry
->
ptr
)
...
...
@@ -341,7 +341,7 @@ BOOL32 WINAPI SetHandleInformation( HANDLE32 handle, DWORD mask, DWORD flags )
mask
=
(
mask
<<
RESERVED_SHIFT
)
&
RESERVED_ALL
;
flags
=
(
flags
<<
RESERVED_SHIFT
)
&
RESERVED_ALL
;
SYSTEM_LOCK
();
if
((
handle
>
0
)
&&
(
handle
<
=
pdb
->
handle_table
->
count
))
if
((
handle
>
0
)
&&
(
handle
<
pdb
->
handle_table
->
count
))
{
HANDLE_ENTRY
*
entry
=
&
pdb
->
handle_table
->
entries
[
handle
];
if
(
entry
->
ptr
)
...
...
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