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
2b6c4c0b
Commit
2b6c4c0b
authored
Jun 03, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Replace long with a better type.
parent
7faa2cb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
oid.c
dlls/crypt32/oid.c
+2
-2
oid.c
dlls/crypt32/tests/oid.c
+3
-3
No files found.
dlls/crypt32/oid.c
View file @
2b6c4c0b
...
...
@@ -197,7 +197,7 @@ BOOL WINAPI CryptGetDefaultOIDDllList(HCRYPTOIDFUNCSET hFuncSet,
struct
OIDFunctionSet
*
set
=
hFuncSet
;
char
*
keyName
;
HKEY
key
;
long
rc
;
LSTATUS
rc
;
TRACE
(
"(%p, %d, %p, %p)
\n
"
,
hFuncSet
,
dwEncodingType
,
pwszDllList
,
pcchDllList
);
...
...
@@ -299,7 +299,7 @@ static BOOL CRYPT_GetFuncFromReg(DWORD dwEncodingType, LPCSTR pszOID,
char
*
keyName
;
const
char
*
funcName
;
HKEY
key
;
long
rc
;
LSTATUS
rc
;
keyName
=
CRYPT_GetKeyName
(
dwEncodingType
,
szFuncName
,
pszOID
);
rc
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
keyName
,
0
,
KEY_READ
,
&
key
);
...
...
dlls/crypt32/tests/oid.c
View file @
2b6c4c0b
...
...
@@ -384,7 +384,7 @@ static void test_registerDefaultOIDFunction(void)
static
const
char
func
[]
=
"CertDllOpenStoreProv"
;
char
buf
[
MAX_PATH
];
BOOL
ret
;
long
rc
;
LSTATUS
rc
;
HKEY
key
;
ret
=
CryptRegisterDefaultOIDFunction
(
0
,
NULL
,
0
,
NULL
);
...
...
@@ -419,7 +419,7 @@ static void test_registerDefaultOIDFunction(void)
ok
(
ret
,
"CryptRegisterDefaultOIDFunction failed: %08x
\n
"
,
GetLastError
());
sprintf
(
buf
,
fmt
,
0
,
func
);
rc
=
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
buf
,
&
key
);
ok
(
rc
==
0
,
"Expected key to exist, RegOpenKeyA failed: %
l
d
\n
"
,
rc
);
ok
(
rc
==
0
,
"Expected key to exist, RegOpenKeyA failed: %d
\n
"
,
rc
);
if
(
rc
==
0
)
{
static
const
CHAR
dllA
[]
=
"Dll"
;
...
...
@@ -432,7 +432,7 @@ static void test_registerDefaultOIDFunction(void)
size
=
sizeof
(
dllBuf
)
/
sizeof
(
dllBuf
[
0
]);
rc
=
RegQueryValueExA
(
key
,
dllA
,
NULL
,
&
type
,
(
LPBYTE
)
dllBuf
,
&
size
);
ok
(
rc
==
0
,
"Expected Dll value to exist, RegQueryValueExA failed: %
l
d
\n
"
,
rc
);
"Expected Dll value to exist, RegQueryValueExA failed: %d
\n
"
,
rc
);
ok
(
type
==
REG_MULTI_SZ
,
"Expected type REG_MULTI_SZ, got %d
\n
"
,
type
);
/* bogusDll was registered first, so that should be first */
ptr
=
dllBuf
;
...
...
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