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
b58a098a
Commit
b58a098a
authored
May 29, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
May 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-Wmissing-declarations and -Wwrite-strings warning fixes.
parent
4e3fd5f3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
15 deletions
+15
-15
cond.y
dlls/msi/cond.y
+2
-2
format.c
dlls/msi/format.c
+1
-1
db.c
dlls/msi/tests/db.c
+9
-8
record.c
dlls/msi/tests/record.c
+1
-1
tokenize.c
dlls/msi/tokenize.c
+1
-1
where.c
dlls/msi/where.c
+1
-2
No files found.
dlls/msi/cond.y
View file @
b58a098a
...
...
@@ -38,7 +38,7 @@
#
define
YYLEX_PARAM
info
#
define
YYPARSE_PARAM
info
static
int
COND_error
(
char
*
str
);
static
int
COND_error
(
c
onst
c
har
*
str
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
...
...
@@ -722,7 +722,7 @@ static LPWSTR COND_GetLiteral( struct cond_str *str )
return
ret
;
}
static
int
COND_error
(
char
*
str
)
static
int
COND_error
(
c
onst
c
har
*
str
)
{
return
0
;
}
...
...
dlls/msi/format.c
View file @
b58a098a
...
...
@@ -421,7 +421,7 @@ static DWORD deformat_string_internal(MSIPACKAGE *package, LPCWSTR ptr,
/* not formatted */
*
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,(
len
*
sizeof
(
WCHAR
)));
memcpy
(
*
data
,
ptr
,
len
*
sizeof
(
WCHAR
));
TRACE
(
"Returning %s
\n
"
,
debugstr_w
(
*
data
));
TRACE
(
"Returning %s
\n
"
,
debugstr_w
n
(
*
data
,
len
));
return
len
;
}
...
...
dlls/msi/tests/db.c
View file @
b58a098a
...
...
@@ -47,12 +47,13 @@ static void test_msidatabase(void)
ok
(
res
==
TRUE
,
"Falled to delete database
\n
"
);
}
void
test_msiinsert
(
void
)
static
void
test_msiinsert
(
void
)
{
const
char
*
msifile
=
"winetest.msi"
;
MSIHANDLE
hdb
=
0
,
hview
=
0
,
hrec
=
0
;
UINT
r
;
char
*
query
,
buf
[
80
];
const
char
*
query
;
char
buf
[
80
];
DWORD
sz
;
DeleteFile
(
msifile
);
...
...
@@ -129,10 +130,10 @@ void test_msiinsert(void)
typedef
UINT
(
WINAPI
*
fnMsiDecomposeDescriptorA
)(
LPCSTR
,
LPCSTR
,
LPSTR
,
LPSTR
,
DWORD
*
);
fnMsiDecomposeDescriptorA
MsiDecomposeDescriptorA
;
void
test_msidecomposedesc
(
void
)
static
void
test_msidecomposedesc
(
void
)
{
char
prod
[
MAX_FEATURE_CHARS
+
1
],
comp
[
MAX_FEATURE_CHARS
+
1
],
feature
[
MAX_FEATURE_CHARS
+
1
];
char
*
desc
;
c
onst
c
har
*
desc
;
UINT
r
;
DWORD
len
;
HMODULE
hmod
;
...
...
@@ -177,7 +178,7 @@ void test_msidecomposedesc(void)
ok
(
len
==
(
strlen
(
desc
)
-
strlen
(
"extra"
)),
"length wrong
\n
"
);
}
static
UINT
try_query_param
(
MSIHANDLE
hdb
,
LPSTR
szQuery
,
MSIHANDLE
hrec
)
static
UINT
try_query_param
(
MSIHANDLE
hdb
,
LP
C
STR
szQuery
,
MSIHANDLE
hrec
)
{
MSIHANDLE
htab
=
0
;
UINT
res
;
...
...
@@ -202,12 +203,12 @@ static UINT try_query_param( MSIHANDLE hdb, LPSTR szQuery, MSIHANDLE hrec )
return
res
;
}
static
UINT
try_query
(
MSIHANDLE
hdb
,
LPSTR
szQuery
)
static
UINT
try_query
(
MSIHANDLE
hdb
,
LP
C
STR
szQuery
)
{
return
try_query_param
(
hdb
,
szQuery
,
0
);
}
static
UINT
try_insert_query
(
MSIHANDLE
hdb
,
LPSTR
szQuery
)
static
UINT
try_insert_query
(
MSIHANDLE
hdb
,
LP
C
STR
szQuery
)
{
MSIHANDLE
hrec
=
0
;
UINT
r
;
...
...
@@ -221,7 +222,7 @@ static UINT try_insert_query( MSIHANDLE hdb, LPSTR szQuery )
return
r
;
}
void
test_msibadqueries
()
static
void
test_msibadqueries
()
{
const
char
*
msifile
=
"winetest.msi"
;
MSIHANDLE
hdb
=
0
;
...
...
dlls/msi/tests/record.c
View file @
b58a098a
...
...
@@ -45,7 +45,7 @@ static BOOL create_temp_file(char *name)
return
r
;
}
void
test_msirecord
(
void
)
static
void
test_msirecord
(
void
)
{
DWORD
r
,
sz
;
INT
i
;
...
...
dlls/msi/tokenize.c
View file @
b58a098a
...
...
@@ -158,7 +158,7 @@ static const Keyword aKeywordTable[] = {
** keyword. If it is a keyword, the token code of that keyword is
** returned. If the input is not a keyword, TK_ID is returned.
*/
int
sqliteKeywordCode
(
const
WCHAR
*
z
,
int
n
){
static
int
sqliteKeywordCode
(
const
WCHAR
*
z
,
int
n
){
UINT
i
,
len
;
char
buffer
[
0x10
];
...
...
dlls/msi/where.c
View file @
b58a098a
...
...
@@ -24,7 +24,6 @@
#include "winbase.h"
#include "winerror.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "msi.h"
#include "msiquery.h"
#include "objbase.h"
...
...
@@ -171,7 +170,7 @@ static UINT STRCMP_Evaluate( string_table *st, MSIVIEW *table, UINT row,
else
if
(
r_str
&&
!
l_str
)
sr
=
-
1
;
else
sr
=
strcmpW
(
l_str
,
r_str
);
sr
=
l
strcmpW
(
l_str
,
r_str
);
*
val
=
(
cond
->
u
.
expr
.
op
==
OP_EQ
&&
(
sr
==
0
)
)
||
(
cond
->
u
.
expr
.
op
==
OP_LT
&&
(
sr
<
0
)
)
||
...
...
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