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
1c9886d6
Commit
1c9886d6
authored
Oct 20, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Sign-compare warnings fix.
parent
40db5bdb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
msi.c
dlls/msi/msi.c
+5
-5
msiquery.c
dlls/msi/msiquery.c
+4
-4
source.c
dlls/msi/source.c
+4
-4
suminfo.c
dlls/msi/suminfo.c
+1
-2
No files found.
dlls/msi/msi.c
View file @
1c9886d6
...
...
@@ -827,7 +827,7 @@ static UINT WINAPI MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute,
{
save
=
*
pcchValueBuf
;
if
(
l
strlenW
(
val
)
<
*
pcchValueBuf
)
if
(
strlenW
(
val
)
<
*
pcchValueBuf
)
r
=
msi_strcpy_to_awstring
(
val
,
szValue
,
pcchValueBuf
);
else
if
(
szValue
->
str
.
a
||
szValue
->
str
.
w
)
r
=
ERROR_MORE_DATA
;
...
...
@@ -973,7 +973,7 @@ static UINT msi_copy_outval(LPWSTR val, LPWSTR out, LPDWORD size)
if
(
out
)
{
if
(
l
strlenW
(
val
)
>=
*
size
)
if
(
strlenW
(
val
)
>=
*
size
)
{
r
=
ERROR_MORE_DATA
;
if
(
*
size
>
0
)
...
...
@@ -1591,7 +1591,7 @@ LANGID WINAPI MsiLoadStringA( MSIHANDLE handle, UINT id, LPSTR lpBuffer,
{
LPWSTR
bufW
;
LANGID
r
;
DWORD
len
;
INT
len
;
bufW
=
msi_alloc
(
nBufferMax
*
sizeof
(
WCHAR
));
r
=
MsiLoadStringW
(
handle
,
id
,
bufW
,
nBufferMax
,
lang
);
...
...
@@ -2135,7 +2135,7 @@ UINT WINAPI MsiGetFileVersionW(LPCWSTR szFilePath, LPWSTR lpVersionBuf,
HIWORD
(
ffi
->
dwFileVersionLS
),
LOWORD
(
ffi
->
dwFileVersionLS
));
if
(
lpVersionBuf
)
lstrcpynW
(
lpVersionBuf
,
tmp
,
*
pcchVersionBuf
);
if
(
l
strlenW
(
tmp
)
>=
*
pcchVersionBuf
)
if
(
strlenW
(
tmp
)
>=
*
pcchVersionBuf
)
ret
=
ERROR_MORE_DATA
;
*
pcchVersionBuf
=
lstrlenW
(
tmp
);
...
...
@@ -2155,7 +2155,7 @@ UINT WINAPI MsiGetFileVersionW(LPCWSTR szFilePath, LPWSTR lpVersionBuf,
wsprintfW
(
tmp
,
szLangFormat
,
*
lang
);
if
(
lpLangBuf
)
lstrcpynW
(
lpLangBuf
,
tmp
,
*
pcchLangBuf
);
if
(
l
strlenW
(
tmp
)
>=
*
pcchLangBuf
)
if
(
strlenW
(
tmp
)
>=
*
pcchLangBuf
)
ret
=
ERROR_MORE_DATA
;
*
pcchLangBuf
=
lstrlenW
(
tmp
);
...
...
dlls/msi/msiquery.c
View file @
1c9886d6
...
...
@@ -633,7 +633,7 @@ MSIDBERROR WINAPI MsiViewGetErrorW( MSIHANDLE handle, LPWSTR szColumnNameBuffer,
MSIQUERY
*
query
=
NULL
;
static
const
WCHAR
szError
[]
=
{
0
};
MSIDBERROR
r
=
MSIDBERROR_NOERROR
;
int
len
;
DWORD
len
;
FIXME
(
"%ld %p %p - returns empty error string
\n
"
,
handle
,
szColumnNameBuffer
,
pcchBuf
);
...
...
@@ -645,7 +645,7 @@ MSIDBERROR WINAPI MsiViewGetErrorW( MSIHANDLE handle, LPWSTR szColumnNameBuffer,
if
(
!
query
)
return
MSIDBERROR_INVALIDARG
;
len
=
l
strlenW
(
szError
);
len
=
strlenW
(
szError
);
if
(
szColumnNameBuffer
)
{
if
(
*
pcchBuf
>
len
)
...
...
@@ -665,7 +665,7 @@ MSIDBERROR WINAPI MsiViewGetErrorA( MSIHANDLE handle, LPSTR szColumnNameBuffer,
static
const
CHAR
szError
[]
=
{
0
};
MSIQUERY
*
query
=
NULL
;
MSIDBERROR
r
=
MSIDBERROR_NOERROR
;
int
len
;
DWORD
len
;
FIXME
(
"%ld %p %p - returns empty error string
\n
"
,
handle
,
szColumnNameBuffer
,
pcchBuf
);
...
...
@@ -677,7 +677,7 @@ MSIDBERROR WINAPI MsiViewGetErrorA( MSIHANDLE handle, LPSTR szColumnNameBuffer,
if
(
!
query
)
return
MSIDBERROR_INVALIDARG
;
len
=
lstrlenA
(
szError
);
len
=
strlen
(
szError
);
if
(
szColumnNameBuffer
)
{
if
(
*
pcchBuf
>
len
)
...
...
dlls/msi/source.c
View file @
1c9886d6
...
...
@@ -218,7 +218,7 @@ UINT WINAPI MsiSourceListEnumMediaDisksW(LPCWSTR szProductCodeOrPatchCode,
DWORD
numvals
,
size
;
LONG
res
;
UINT
r
;
static
int
index
=
0
;
static
DWORD
index
=
0
;
static
const
WCHAR
fmt
[]
=
{
'#'
,
'%'
,
'd'
,
0
};
...
...
@@ -360,7 +360,7 @@ UINT WINAPI MsiSourceListEnumSourcesA(LPCSTR szProductCodeOrPatch, LPCSTR szUser
LPWSTR
source
=
NULL
;
DWORD
len
=
0
;
UINT
r
=
ERROR_INVALID_PARAMETER
;
static
int
index
=
0
;
static
DWORD
index
=
0
;
TRACE
(
"(%s, %s, %d, %d, %d, %p, %p)
\n
"
,
debugstr_a
(
szProductCodeOrPatch
),
debugstr_a
(
szUserSid
),
dwContext
,
dwOptions
,
dwIndex
,
szSource
,
pcchSource
);
...
...
@@ -433,7 +433,7 @@ UINT WINAPI MsiSourceListEnumSourcesW(LPCWSTR szProductCodeOrPatch, LPCWSTR szUs
HKEY
subkey
=
NULL
;
LONG
res
;
UINT
r
=
ERROR_INVALID_PARAMETER
;
static
int
index
=
0
;
static
DWORD
index
=
0
;
static
const
WCHAR
format
[]
=
{
'%'
,
'd'
,
0
};
...
...
@@ -654,7 +654,7 @@ UINT WINAPI MsiSourceListGetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
if
(
szValue
)
{
if
(
l
strlenW
(
ptr
)
<
*
pcchValue
)
if
(
strlenW
(
ptr
)
<
*
pcchValue
)
lstrcpyW
(
szValue
,
ptr
);
else
rc
=
ERROR_MORE_DATA
;
...
...
dlls/msi/suminfo.c
View file @
1c9886d6
...
...
@@ -169,8 +169,7 @@ static UINT propvar_changetype(PROPVARIANT *changed, PROPVARIANT *property, VART
static
void
read_properties_from_data
(
PROPVARIANT
*
prop
,
LPBYTE
data
,
DWORD
sz
)
{
UINT
type
;
DWORD
i
;
int
size
;
DWORD
i
,
size
;
PROPERTY_DATA
*
propdata
;
PROPVARIANT
property
,
*
ptr
;
PROPVARIANT
changed
;
...
...
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