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
bb3a968d
Commit
bb3a968d
authored
Sep 21, 2007
by
Christian Gmeiner
Committed by
Alexandre Julliard
Sep 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: fix some compiler warnings when using -Wsign-compare.
parent
65dbd2b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
crypt.c
dlls/advapi32/crypt.c
+1
-1
crypt_lmhash.c
dlls/advapi32/crypt_lmhash.c
+2
-2
security.c
dlls/advapi32/security.c
+6
-6
service.c
dlls/advapi32/service.c
+1
-1
No files found.
dlls/advapi32/crypt.c
View file @
bb3a968d
...
...
@@ -146,7 +146,7 @@ static inline BOOL CRYPT_UnicodeToANSI(LPCWSTR wstr, LPSTR* str, int strsize)
*/
static
inline
BOOL
CRYPT_ANSIToUnicode
(
LPCSTR
str
,
LPWSTR
*
wstr
,
int
wstrsize
)
{
int
wcount
;
unsigned
int
wcount
;
if
(
!
str
)
{
...
...
dlls/advapi32/crypt_lmhash.c
View file @
bb3a968d
...
...
@@ -194,7 +194,7 @@ NTSTATUS WINAPI SystemFunction004(const struct ustring *in,
unsigned
int
ui
[
2
];
}
data
;
unsigned
char
deskey
[
7
];
int
crypt_len
,
ofs
;
unsigned
int
crypt_len
,
ofs
;
if
(
key
->
Length
<=
0
)
return
STATUS_INVALID_PARAMETER_2
;
...
...
@@ -253,7 +253,7 @@ NTSTATUS WINAPI SystemFunction005(const struct ustring *in,
unsigned
int
ui
[
2
];
}
data
;
unsigned
char
deskey
[
7
];
int
ofs
,
crypt_len
;
unsigned
int
ofs
,
crypt_len
;
if
(
key
->
Length
<=
0
)
return
STATUS_INVALID_PARAMETER_2
;
...
...
dlls/advapi32/security.c
View file @
bb3a968d
...
...
@@ -772,7 +772,7 @@ CreateWellKnownSid( WELL_KNOWN_SID_TYPE WellKnownSidType,
PSID
pSid
,
DWORD
*
cbSid
)
{
int
i
;
unsigned
int
i
;
TRACE
(
"(%d, %s, %p, %p)
\n
"
,
WellKnownSidType
,
debugstr_sid
(
DomainSid
),
pSid
,
cbSid
);
if
(
DomainSid
!=
NULL
)
{
...
...
@@ -811,7 +811,7 @@ CreateWellKnownSid( WELL_KNOWN_SID_TYPE WellKnownSidType,
BOOL
WINAPI
IsWellKnownSid
(
PSID
pSid
,
WELL_KNOWN_SID_TYPE
WellKnownSidType
)
{
int
i
;
unsigned
int
i
;
TRACE
(
"(%s, %d)
\n
"
,
debugstr_sid
(
pSid
),
WellKnownSidType
);
for
(
i
=
0
;
i
<
sizeof
(
WellKnownSids
)
/
sizeof
(
WellKnownSids
[
0
]);
i
++
)
...
...
@@ -1627,7 +1627,7 @@ LookupPrivilegeNameA( LPCSTR lpSystemName, PLUID lpLuid, LPSTR lpName,
if
(
ret
)
{
/* Windows crashes if cchName is NULL, so will I */
int
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpNameW
,
-
1
,
lpName
,
unsigned
int
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpNameW
,
-
1
,
lpName
,
*
cchName
,
NULL
,
NULL
);
if
(
len
==
0
)
...
...
@@ -1870,7 +1870,7 @@ LookupAccountSidW(
IN
OUT
LPDWORD
domainSize
,
OUT
PSID_NAME_USE
name_use
)
{
int
i
,
j
;
unsigned
int
i
,
j
;
const
WCHAR
*
ac
=
NULL
;
const
WCHAR
*
dm
=
NULL
;
SID_NAME_USE
use
=
0
;
...
...
@@ -3821,7 +3821,7 @@ static DWORD ComputeStringSidSize(LPCWSTR StringSid)
}
else
/* String constant format - Only available in winxp and above */
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
WellKnownSids
)
/
sizeof
(
WellKnownSids
[
0
]);
i
++
)
if
(
!
strncmpW
(
WellKnownSids
[
i
].
wstr
,
StringSid
,
2
))
...
...
@@ -3915,7 +3915,7 @@ static BOOL ParseStringSidToSid(LPCWSTR StringSid, PSID pSid, LPDWORD cBytes)
}
else
/* String constant format - Only available in winxp and above */
{
int
i
;
unsigned
int
i
;
pisid
->
Revision
=
SDDL_REVISION
;
for
(
i
=
0
;
i
<
sizeof
(
WellKnownSids
)
/
sizeof
(
WellKnownSids
[
0
]);
i
++
)
...
...
dlls/advapi32/service.c
View file @
bb3a968d
...
...
@@ -2319,7 +2319,7 @@ BOOL WINAPI GetServiceDisplayNameW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
if
(
!
RegOpenKeyW
(
hscm
->
hkey
,
lpServiceName
,
&
hkey
))
{
INT
len
=
lstrlenW
(
lpServiceName
);
U
INT
len
=
lstrlenW
(
lpServiceName
);
BOOL
r
=
FALSE
;
if
((
*
lpcchBuffer
<=
len
)
||
(
!
lpDisplayName
&&
*
lpcchBuffer
))
...
...
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