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
1dcbbfe1
Commit
1dcbbfe1
authored
Jan 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Don't use HIWORD() on a string pointer.
parent
4b5dcc9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+8
-6
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
1dcbbfe1
...
...
@@ -40,6 +40,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
cryptnet
);
#define IS_INTOID(x) (((ULONG_PTR)(x) >> 16) == 0)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"(0x%p, %d, %p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
...
...
@@ -92,9 +94,7 @@ HRESULT WINAPI DllUnregisterServer(void)
static
const
char
*
url_oid_to_str
(
LPCSTR
oid
)
{
if
(
HIWORD
(
oid
))
return
oid
;
else
if
(
IS_INTOID
(
oid
))
{
static
char
buf
[
10
];
...
...
@@ -115,6 +115,8 @@ static const char *url_oid_to_str(LPCSTR oid)
return
buf
;
}
}
else
return
oid
;
}
typedef
BOOL
(
WINAPI
*
UrlDllGetObjectUrlFunc
)(
LPCSTR
,
LPVOID
,
DWORD
,
...
...
@@ -379,7 +381,7 @@ BOOL WINAPI CryptGetObjectUrl(LPCSTR pszUrlOid, LPVOID pvPara, DWORD dwFlags,
TRACE
(
"(%s, %p, %08x, %p, %p, %p, %p, %p)
\n
"
,
debugstr_a
(
pszUrlOid
),
pvPara
,
dwFlags
,
pUrlArray
,
pcbUrlArray
,
pUrlInfo
,
pcbUrlInfo
,
pvReserved
);
if
(
!
HIWOR
D
(
pszUrlOid
))
if
(
IS_INTOI
D
(
pszUrlOid
))
{
switch
(
LOWORD
(
pszUrlOid
))
{
...
...
@@ -1398,7 +1400,7 @@ static BOOL CRYPT_GetCreateFunction(LPCSTR pszObjectOid,
*
pFunc
=
NULL
;
*
phFunc
=
0
;
if
(
!
HIWOR
D
(
pszObjectOid
))
if
(
IS_INTOI
D
(
pszObjectOid
))
{
switch
(
LOWORD
(
pszObjectOid
))
{
...
...
@@ -1468,7 +1470,7 @@ static BOOL CRYPT_GetExpirationFunction(LPCSTR pszObjectOid,
{
BOOL
ret
;
if
(
!
HIWOR
D
(
pszObjectOid
))
if
(
IS_INTOI
D
(
pszObjectOid
))
{
switch
(
LOWORD
(
pszObjectOid
))
{
...
...
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