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
9959d7e3
Commit
9959d7e3
authored
Aug 25, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Cast-qual warnings fix.
parent
4c4c583f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
crypt.c
dlls/advapi32/crypt.c
+2
-1
crypt_lmhash.c
dlls/advapi32/crypt_lmhash.c
+1
-1
eventlog.c
dlls/advapi32/eventlog.c
+4
-4
No files found.
dlls/advapi32/crypt.c
View file @
9959d7e3
...
...
@@ -1819,7 +1819,8 @@ BOOL WINAPI CryptSetProviderExW (LPCWSTR pszProvName, DWORD dwProvType, DWORD *p
}
CRYPT_Free
(
keyname
);
if
(
RegSetValueExW
(
hTypeKey
,
nameW
,
0
,
REG_SZ
,
(
LPBYTE
)
pszProvName
,
(
strlenW
(
pszProvName
)
+
1
)
*
sizeof
(
WCHAR
)))
if
(
RegSetValueExW
(
hTypeKey
,
nameW
,
0
,
REG_SZ
,
(
const
BYTE
*
)
pszProvName
,
(
strlenW
(
pszProvName
)
+
1
)
*
sizeof
(
WCHAR
)))
{
RegCloseKey
(
hTypeKey
);
RegCloseKey
(
hProvKey
);
...
...
dlls/advapi32/crypt_lmhash.c
View file @
9959d7e3
...
...
@@ -50,7 +50,7 @@ static void CRYPT_LMhash( unsigned char *dst, const unsigned char *pwd, const in
NTSTATUS
WINAPI
SystemFunction006
(
LPCSTR
password
,
LPSTR
hash
)
{
CRYPT_LMhash
(
(
unsigned
char
*
)
hash
,
(
unsigned
char
*
)
password
,
strlen
(
password
)
);
CRYPT_LMhash
(
(
unsigned
char
*
)
hash
,
(
const
unsigned
char
*
)
password
,
strlen
(
password
)
);
return
STATUS_SUCCESS
;
}
...
...
dlls/advapi32/eventlog.c
View file @
9959d7e3
...
...
@@ -373,7 +373,7 @@ HANDLE WINAPI RegisterEventSourceW( LPCWSTR lpUNCServerName, LPCWSTR lpSourceNam
BOOL
WINAPI
ReportEventA
(
HANDLE
hEventLog
,
WORD
wType
,
WORD
wCategory
,
DWORD
dwEventID
,
PSID
lpUserSid
,
WORD
wNumStrings
,
DWORD
dwDataSize
,
LPCSTR
*
lpStrings
,
LPVOID
lpRawData
)
{
LP
C
WSTR
*
wideStrArray
;
LPWSTR
*
wideStrArray
;
UNICODE_STRING
str
;
int
i
;
BOOL
ret
;
...
...
@@ -384,17 +384,17 @@ BOOL WINAPI ReportEventA ( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD d
if
(
wNumStrings
==
0
)
return
TRUE
;
if
(
!
lpStrings
)
return
TRUE
;
wideStrArray
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
LP
C
WSTR
)
*
wNumStrings
);
wideStrArray
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
LPWSTR
)
*
wNumStrings
);
for
(
i
=
0
;
i
<
wNumStrings
;
i
++
)
{
RtlCreateUnicodeStringFromAsciiz
(
&
str
,
lpStrings
[
i
]);
wideStrArray
[
i
]
=
str
.
Buffer
;
}
ret
=
ReportEventW
(
hEventLog
,
wType
,
wCategory
,
dwEventID
,
lpUserSid
,
wNumStrings
,
dwDataSize
,
wideStrArray
,
lpRawData
);
wNumStrings
,
dwDataSize
,
(
LPCWSTR
*
)
wideStrArray
,
lpRawData
);
for
(
i
=
0
;
i
<
wNumStrings
;
i
++
)
{
HeapFree
(
GetProcessHeap
(),
0
,
(
LPSTR
)
wideStrArray
[
i
]
);
HeapFree
(
GetProcessHeap
(),
0
,
wideStrArray
[
i
]
);
}
HeapFree
(
GetProcessHeap
(),
0
,
wideStrArray
);
return
ret
;
...
...
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