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
414cdc04
Commit
414cdc04
authored
Jul 21, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Sign-compare warnings fix.
parent
eb612fd4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
registry.c
dlls/advapi32/registry.c
+4
-4
security.c
dlls/advapi32/security.c
+13
-10
service.c
dlls/advapi32/service.c
+0
-3
No files found.
dlls/advapi32/registry.c
View file @
414cdc04
...
...
@@ -470,8 +470,8 @@ LSTATUS WINAPI RegEnumKeyExW( HKEY hkey, DWORD index, LPWSTR name, LPDWORD name_
KEY_NODE_INFORMATION
*
info
=
(
KEY_NODE_INFORMATION
*
)
buffer
;
DWORD
total_size
;
TRACE
(
"(%p,%d,%p,%p(%
d
),%p,%p,%p,%p)
\n
"
,
hkey
,
index
,
name
,
name_len
,
name_len
?
*
name_len
:
-
1
,
reserved
,
class
,
class_len
,
ft
);
TRACE
(
"(%p,%d,%p,%p(%
u
),%p,%p,%p,%p)
\n
"
,
hkey
,
index
,
name
,
name_len
,
name_len
?
*
name_len
:
0
,
reserved
,
class
,
class_len
,
ft
);
if
(
reserved
)
return
ERROR_INVALID_PARAMETER
;
if
(
!
(
hkey
=
get_special_root_hkey
(
hkey
)))
return
ERROR_INVALID_HANDLE
;
...
...
@@ -534,8 +534,8 @@ LSTATUS WINAPI RegEnumKeyExA( HKEY hkey, DWORD index, LPSTR name, LPDWORD name_l
KEY_NODE_INFORMATION
*
info
=
(
KEY_NODE_INFORMATION
*
)
buffer
;
DWORD
total_size
;
TRACE
(
"(%p,%d,%p,%p(%
d
),%p,%p,%p,%p)
\n
"
,
hkey
,
index
,
name
,
name_len
,
name_len
?
*
name_len
:
-
1
,
reserved
,
class
,
class_len
,
ft
);
TRACE
(
"(%p,%d,%p,%p(%
u
),%p,%p,%p,%p)
\n
"
,
hkey
,
index
,
name
,
name_len
,
name_len
?
*
name_len
:
0
,
reserved
,
class
,
class_len
,
ft
);
if
(
reserved
)
return
ERROR_INVALID_PARAMETER
;
if
(
!
(
hkey
=
get_special_root_hkey
(
hkey
)))
return
ERROR_INVALID_HANDLE
;
...
...
dlls/advapi32/security.c
View file @
414cdc04
...
...
@@ -2119,28 +2119,31 @@ LookupAccountSidW(
}
if
(
dm
)
{
DWORD
ac_len
=
lstrlenW
(
ac
);
DWORD
dm_len
=
lstrlenW
(
dm
);
BOOL
status
=
TRUE
;
if
(
*
accountSize
>
lstrlenW
(
ac
))
{
if
(
*
accountSize
>
ac_len
)
{
if
(
account
)
lstrcpyW
(
account
,
ac
);
}
if
(
*
domainSize
>
lstrlenW
(
dm
)
)
{
if
(
*
domainSize
>
dm_len
)
{
if
(
domain
)
lstrcpyW
(
domain
,
dm
);
}
if
(((
*
accountSize
!=
0
)
&&
(
*
accountSize
<
strlenW
(
ac
)
))
||
((
*
domainSize
!=
0
)
&&
(
*
domainSize
<
strlenW
(
dm
)
)))
{
if
(((
*
accountSize
!=
0
)
&&
(
*
accountSize
<
ac_len
))
||
((
*
domainSize
!=
0
)
&&
(
*
domainSize
<
dm_len
)))
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
status
=
FALSE
;
}
if
(
*
domainSize
)
*
domainSize
=
strlenW
(
dm
)
;
*
domainSize
=
dm_len
;
else
*
domainSize
=
strlenW
(
dm
)
+
1
;
*
domainSize
=
dm_len
+
1
;
if
(
*
accountSize
)
*
accountSize
=
strlenW
(
ac
)
;
*
accountSize
=
ac_len
;
else
*
accountSize
=
strlenW
(
ac
)
+
1
;
*
accountSize
=
ac_len
+
1
;
*
name_use
=
use
;
HeapFree
(
GetProcessHeap
(),
0
,
computer_name
);
return
status
;
...
...
@@ -4050,7 +4053,7 @@ static BOOL DumpSidNumeric(PSID psid, WCHAR **pwptr, ULONG *plen)
static
BOOL
DumpSid
(
PSID
psid
,
WCHAR
**
pwptr
,
ULONG
*
plen
)
{
in
t
i
;
size_
t
i
;
for
(
i
=
0
;
i
<
sizeof
(
WellKnownSids
)
/
sizeof
(
WellKnownSids
[
0
]);
i
++
)
{
if
(
WellKnownSids
[
i
].
wstr
[
0
]
&&
EqualSid
(
psid
,
(
PSID
)
&
(
WellKnownSids
[
i
].
Sid
.
Revision
)))
...
...
@@ -4102,7 +4105,7 @@ static void DumpRights(DWORD mask, WCHAR **pwptr, ULONG *plen)
{
static
const
WCHAR
fmtW
[]
=
{
'0'
,
'x'
,
'%'
,
'x'
,
0
};
WCHAR
buf
[
15
];
in
t
i
;
size_
t
i
;
if
(
mask
==
0
)
return
;
...
...
dlls/advapi32/service.c
View file @
414cdc04
...
...
@@ -1599,9 +1599,6 @@ QueryServiceConfigW( SC_HANDLE hService,
move_string_to_buffer
(
&
bufpos
,
&
lpServiceConfig
->
lpServiceStartName
);
move_string_to_buffer
(
&
bufpos
,
&
lpServiceConfig
->
lpDisplayName
);
if
(
bufpos
-
(
LPBYTE
)
lpServiceConfig
>
cbBufSize
)
ERR
(
"Buffer overflow!
\n
"
);
TRACE
(
"Image path = %s
\n
"
,
debugstr_w
(
lpServiceConfig
->
lpBinaryPathName
)
);
TRACE
(
"Group = %s
\n
"
,
debugstr_w
(
lpServiceConfig
->
lpLoadOrderGroup
)
);
TRACE
(
"Dependencies = %s
\n
"
,
debugstr_w
(
lpServiceConfig
->
lpDependencies
)
);
...
...
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