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
68975938
Commit
68975938
authored
Apr 21, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Remove unused variables.
parent
80b629fa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
13 deletions
+6
-13
action.c
dlls/msi/action.c
+1
-2
msiquery.c
dlls/msi/msiquery.c
+1
-4
source.c
dlls/msi/source.c
+2
-3
sql.y
dlls/msi/sql.y
+1
-2
suminfo.c
dlls/msi/suminfo.c
+1
-2
No files found.
dlls/msi/action.c
View file @
68975938
...
...
@@ -5068,7 +5068,7 @@ static LONG env_set_flags( LPCWSTR *name, LPCWSTR *value, DWORD *flags )
static
UINT
ITERATE_WriteEnvironmentString
(
MSIRECORD
*
rec
,
LPVOID
param
)
{
MSIPACKAGE
*
package
=
param
;
LPCWSTR
name
,
value
,
comp
;
LPCWSTR
name
,
value
;
LPWSTR
data
=
NULL
,
newval
=
NULL
;
LPWSTR
deformatted
=
NULL
,
ptr
;
DWORD
flags
,
type
,
size
;
...
...
@@ -5088,7 +5088,6 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
name
=
MSI_RecordGetString
(
rec
,
2
);
value
=
MSI_RecordGetString
(
rec
,
3
);
comp
=
MSI_RecordGetString
(
rec
,
4
);
res
=
env_set_flags
(
&
name
,
&
value
,
&
flags
);
if
(
res
!=
ERROR_SUCCESS
)
...
...
dlls/msi/msiquery.c
View file @
68975938
...
...
@@ -869,15 +869,12 @@ UINT MSI_DatabaseGetPrimaryKeys( MSIDATABASE *db,
'`'
,
'T'
,
'a'
,
'b'
,
'l'
,
'e'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
struct
msi_primary_key_record_info
info
;
MSIQUERY
*
query
=
NULL
;
MSIVIEW
*
view
;
UINT
r
;
r
=
MSI_OpenQuery
(
db
,
&
query
,
sql
,
table
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
view
=
query
->
view
;
/* count the number of primary key records */
info
.
n
=
0
;
info
.
rec
=
0
;
...
...
dlls/msi/source.c
View file @
68975938
...
...
@@ -153,7 +153,6 @@ UINT WINAPI MsiSourceListEnumMediaDisksA(LPCSTR szProductCodeOrPatchCode,
LPWSTR
usersid
=
NULL
;
LPWSTR
volume
=
NULL
;
LPWSTR
prompt
=
NULL
;
DWORD
volumesz
,
promptsz
;
UINT
r
=
ERROR_INVALID_PARAMETER
;
TRACE
(
"(%s, %s, %d, %d, %d, %p, %p, %p, %p, %p)
\n
"
,
debugstr_a
(
szProductCodeOrPatchCode
),
...
...
@@ -183,11 +182,11 @@ UINT WINAPI MsiSourceListEnumMediaDisksA(LPCSTR szProductCodeOrPatchCode,
goto
done
;
if
(
szVolumeLabel
&&
pcchVolumeLabel
)
volumesz
=
WideCharToMultiByte
(
CP_ACP
,
0
,
volume
,
-
1
,
szVolumeLabel
,
WideCharToMultiByte
(
CP_ACP
,
0
,
volume
,
-
1
,
szVolumeLabel
,
*
pcchVolumeLabel
+
1
,
NULL
,
NULL
);
if
(
szDiskPrompt
)
promptsz
=
WideCharToMultiByte
(
CP_ACP
,
0
,
prompt
,
-
1
,
szDiskPrompt
,
WideCharToMultiByte
(
CP_ACP
,
0
,
prompt
,
-
1
,
szDiskPrompt
,
*
pcchDiskPrompt
+
1
,
NULL
,
NULL
);
done:
...
...
dlls/msi/sql.y
View file @
68975938
...
...
@@ -142,9 +142,8 @@ oneinsert:
{
SQL_input *sql = (SQL_input*) info;
MSIVIEW *insert = NULL;
UINT r;
r =
INSERT_CreateView( sql->db, &insert, $3, $5, $9, FALSE );
INSERT_CreateView( sql->db, &insert, $3, $5, $9, FALSE );
if( !insert )
YYABORT;
$$ = insert;
...
...
dlls/msi/suminfo.c
View file @
68975938
...
...
@@ -371,7 +371,7 @@ static UINT save_summary_info( const MSISUMMARYINFO * si, IStream *stm )
LPBYTE
data
=
NULL
;
ULONG
count
,
sz
;
HRESULT
r
;
int
i
,
n
;
int
i
;
/* write the header */
sz
=
sizeof
set_hdr
;
...
...
@@ -397,7 +397,6 @@ static UINT save_summary_info( const MSISUMMARYINFO * si, IStream *stm )
section_hdr
.
cbSection
=
sizeof
section_hdr
;
section_hdr
.
cbSection
+=
(
get_property_count
(
si
->
property
)
*
sizeof
idofs
[
0
]);
section_hdr
.
cProperties
=
0
;
n
=
0
;
for
(
i
=
0
;
i
<
MSI_MAX_PROPS
;
i
++
)
{
sz
=
write_property_to_data
(
&
si
->
property
[
i
],
NULL
);
...
...
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