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
092a2b3e
Commit
092a2b3e
authored
May 05, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
May 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Avoid giving variables same name as library functions.
parent
aac5fa34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
crypt.c
dlls/advapi32/crypt.c
+15
-15
No files found.
dlls/advapi32/crypt.c
View file @
092a2b3e
...
...
@@ -1196,23 +1196,23 @@ BOOL WINAPI CryptEnumProvidersA (DWORD dwIndex, DWORD *pdwReserved,
DWORD
dwFlags
,
DWORD
*
pdwProvType
,
LPSTR
pszProvName
,
DWORD
*
pcbProvName
)
{
PWSTR
str
=
NULL
;
DWORD
strlen
;
DWORD
bufsize
;
BOOL
ret
;
/* = FALSE; */
TRACE
(
"(%d, %p, %08x, %p, %p, %p)
\n
"
,
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
pszProvName
,
pcbProvName
);
if
(
!
CryptEnumProvidersW
(
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
NULL
,
&
strlen
))
if
(
!
CryptEnumProvidersW
(
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
NULL
,
&
bufsize
))
return
FALSE
;
if
(
pszProvName
&&
!
(
str
=
CRYPT_Alloc
(
strlen
))
)
if
(
pszProvName
&&
!
(
str
=
CRYPT_Alloc
(
bufsize
))
)
{
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
return
FALSE
;
}
ret
=
CryptEnumProvidersW
(
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
str
,
&
strlen
);
ret
=
CryptEnumProvidersW
(
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
str
,
&
bufsize
);
if
(
str
)
CRYPT_UnicodeToANSI
(
str
,
&
pszProvName
,
*
pcbProvName
);
*
pcbProvName
=
strlen
/
sizeof
(
WCHAR
);
/* FIXME: not correct */
*
pcbProvName
=
bufsize
/
sizeof
(
WCHAR
);
/* FIXME: not correct */
if
(
str
)
{
CRYPT_Free
(
str
);
...
...
@@ -1325,23 +1325,23 @@ BOOL WINAPI CryptEnumProviderTypesA (DWORD dwIndex, DWORD *pdwReserved,
DWORD
dwFlags
,
DWORD
*
pdwProvType
,
LPSTR
pszTypeName
,
DWORD
*
pcbTypeName
)
{
PWSTR
str
=
NULL
;
DWORD
strlen
;
DWORD
bufsize
;
BOOL
ret
;
TRACE
(
"(%d, %p, %08x, %p, %p, %p)
\n
"
,
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
pszTypeName
,
pcbTypeName
);
if
(
!
CryptEnumProviderTypesW
(
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
NULL
,
&
strlen
))
if
(
!
CryptEnumProviderTypesW
(
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
NULL
,
&
bufsize
))
return
FALSE
;
if
(
pszTypeName
&&
!
(
str
=
CRYPT_Alloc
(
strlen
))
)
if
(
pszTypeName
&&
!
(
str
=
CRYPT_Alloc
(
bufsize
))
)
{
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
return
FALSE
;
}
ret
=
CryptEnumProviderTypesW
(
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
str
,
&
strlen
);
ret
=
CryptEnumProviderTypesW
(
dwIndex
,
pdwReserved
,
dwFlags
,
pdwProvType
,
str
,
&
bufsize
);
if
(
str
)
CRYPT_UnicodeToANSI
(
str
,
&
pszTypeName
,
*
pcbTypeName
);
*
pcbTypeName
=
strlen
/
sizeof
(
WCHAR
);
*
pcbTypeName
=
bufsize
/
sizeof
(
WCHAR
);
if
(
str
)
{
CRYPT_Free
(
str
);
...
...
@@ -1525,21 +1525,21 @@ BOOL WINAPI CryptGetDefaultProviderA (DWORD dwProvType, DWORD *pdwReserved,
DWORD
dwFlags
,
LPSTR
pszProvName
,
DWORD
*
pcbProvName
)
{
PWSTR
str
=
NULL
;
DWORD
strlen
;
DWORD
bufsize
;
BOOL
ret
=
FALSE
;
TRACE
(
"(%d, %p, %08x, %p, %p)
\n
"
,
dwProvType
,
pdwReserved
,
dwFlags
,
pszProvName
,
pcbProvName
);
CryptGetDefaultProviderW
(
dwProvType
,
pdwReserved
,
dwFlags
,
NULL
,
&
strlen
);
if
(
pszProvName
&&
!
(
str
=
CRYPT_Alloc
(
strlen
))
)
CryptGetDefaultProviderW
(
dwProvType
,
pdwReserved
,
dwFlags
,
NULL
,
&
bufsize
);
if
(
pszProvName
&&
!
(
str
=
CRYPT_Alloc
(
bufsize
))
)
{
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
return
FALSE
;
}
ret
=
CryptGetDefaultProviderW
(
dwProvType
,
pdwReserved
,
dwFlags
,
str
,
&
strlen
);
ret
=
CryptGetDefaultProviderW
(
dwProvType
,
pdwReserved
,
dwFlags
,
str
,
&
bufsize
);
if
(
str
)
CRYPT_UnicodeToANSI
(
str
,
&
pszProvName
,
*
pcbProvName
);
*
pcbProvName
=
strlen
/
sizeof
(
WCHAR
);
*
pcbProvName
=
bufsize
/
sizeof
(
WCHAR
);
if
(
str
)
{
CRYPT_Free
(
str
);
...
...
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