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
a15dbfac
Commit
a15dbfac
authored
Mar 02, 2010
by
Reece Dunn
Committed by
Alexandre Julliard
Mar 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix CryptFreeTls when calling with a freed index.
parent
1b46c066
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
main.c
dlls/crypt32/main.c
+6
-1
main.c
dlls/crypt32/tests/main.c
+2
-4
No files found.
dlls/crypt32/main.c
View file @
a15dbfac
...
...
@@ -161,8 +161,13 @@ BOOL WINAPI I_CryptSetTls(DWORD dwTlsIndex, LPVOID lpTlsValue)
BOOL
WINAPI
I_CryptFreeTls
(
DWORD
dwTlsIndex
,
DWORD
unknown
)
{
BOOL
ret
;
TRACE
(
"(%d, %d)
\n
"
,
dwTlsIndex
,
unknown
);
return
TlsFree
(
dwTlsIndex
);
ret
=
TlsFree
(
dwTlsIndex
);
if
(
!
ret
)
SetLastError
(
E_INVALIDARG
);
return
ret
;
}
BOOL
WINAPI
I_CryptGetOssGlobal
(
DWORD
x
)
...
...
dlls/crypt32/tests/main.c
View file @
a15dbfac
...
...
@@ -254,10 +254,8 @@ static void test_cryptTls(void)
ret
=
pI_CryptFreeTls
(
index
,
0
);
ok
(
ret
,
"I_CryptFreeTls failed: %08x
\n
"
,
GetLastError
());
ret
=
pI_CryptFreeTls
(
index
,
0
);
/* Not sure if this fails because TlsFree should fail, so leave as
* todo for now.
*/
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
ok
(
!
ret
,
"I_CryptFreeTls succeeded
\n
"
);
ok
(
GetLastError
()
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
}
/* Similar pass, check I_CryptDetachTls */
...
...
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