Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
43a98ecb
Commit
43a98ecb
authored
Apr 09, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Avoid using a pointer difference in a trace.
parent
26cc3efb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
schannel.c
dlls/secur32/schannel.c
+3
-2
No files found.
dlls/secur32/schannel.c
View file @
43a98ecb
...
@@ -129,18 +129,19 @@ static ULONG_PTR schan_alloc_handle(void *object, enum schan_handle_type type)
...
@@ -129,18 +129,19 @@ static ULONG_PTR schan_alloc_handle(void *object, enum schan_handle_type type)
if
(
schan_free_handles
)
if
(
schan_free_handles
)
{
{
DWORD
index
=
schan_free_handles
-
schan_handle_table
;
/* Use a free handle */
/* Use a free handle */
handle
=
schan_free_handles
;
handle
=
schan_free_handles
;
if
(
handle
->
type
!=
SCHAN_HANDLE_FREE
)
if
(
handle
->
type
!=
SCHAN_HANDLE_FREE
)
{
{
ERR
(
"Handle %d(%p) is in the free list, but has type %#x.
\n
"
,
(
handle
-
schan_handle_table
)
,
handle
,
handle
->
type
);
ERR
(
"Handle %d(%p) is in the free list, but has type %#x.
\n
"
,
index
,
handle
,
handle
->
type
);
return
SCHAN_INVALID_HANDLE
;
return
SCHAN_INVALID_HANDLE
;
}
}
schan_free_handles
=
handle
->
object
;
schan_free_handles
=
handle
->
object
;
handle
->
object
=
object
;
handle
->
object
=
object
;
handle
->
type
=
type
;
handle
->
type
=
type
;
return
handle
-
schan_handle_table
;
return
index
;
}
}
if
(
!
(
schan_handle_count
<
schan_handle_table_size
))
if
(
!
(
schan_handle_count
<
schan_handle_table_size
))
{
{
...
...
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