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
c88c0b45
Commit
c88c0b45
authored
Nov 14, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Remove track_tempfile()'s unused 2nd parameter.
parent
f241daef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
20 deletions
+9
-20
custom.c
dlls/msi/custom.c
+1
-1
files.c
dlls/msi/files.c
+1
-1
helpers.c
dlls/msi/helpers.c
+6
-16
msipriv.h
dlls/msi/msipriv.h
+1
-2
No files found.
dlls/msi/custom.c
View file @
c88c0b45
...
...
@@ -307,7 +307,7 @@ static UINT store_binary_to_temp(MSIPACKAGE *package, LPCWSTR source,
TRACE
(
"Unable to create file
\n
"
);
return
ERROR_FUNCTION_FAILED
;
}
track_tempfile
(
package
,
tmp_file
,
tmp_file
);
track_tempfile
(
package
,
tmp_file
);
row
=
MSI_QueryGetRecord
(
package
->
db
,
query
,
source
);
if
(
!
row
)
...
...
dlls/msi/files.c
View file @
c88c0b45
...
...
@@ -123,7 +123,7 @@ static UINT writeout_cabinet_stream(MSIPACKAGE *package, LPCWSTR stream_name,
GetTempFileNameW
(
tmp
,
stream_name
,
0
,
source
);
track_tempfile
(
package
,
strrchrW
(
source
,
'\\'
),
source
);
track_tempfile
(
package
,
source
);
the_file
=
CreateFileW
(
source
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
...
...
dlls/msi/helpers.c
View file @
c88c0b45
...
...
@@ -108,39 +108,30 @@ MSIFILE* get_loaded_file( MSIPACKAGE* package, LPCWSTR key )
return
NULL
;
}
int
track_tempfile
(
MSIPACKAGE
*
package
,
LPCWSTR
name
,
LPCWSTR
path
)
int
track_tempfile
(
MSIPACKAGE
*
package
,
LPCWSTR
path
)
{
MSITEMPFILE
*
temp
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
path
));
LIST_FOR_EACH_ENTRY
(
temp
,
&
package
->
tempfiles
,
MSITEMPFILE
,
entry
)
{
if
(
lstrcmpW
(
name
,
temp
->
File
)
==
0
)
{
TRACE
(
"tempfile %s already exists with path %s
\n
"
,
debugstr_w
(
temp
->
File
),
debugstr_w
(
temp
->
Path
));
return
-
1
;
}
}
if
(
!
lstrcmpW
(
path
,
temp
->
Path
))
return
0
;
temp
=
msi_alloc_zero
(
sizeof
(
MSITEMPFILE
)
);
if
(
!
temp
)
return
-
1
;
list_add_head
(
&
package
->
tempfiles
,
&
temp
->
entry
);
temp
->
File
=
strdupW
(
name
);
temp
->
Path
=
strdupW
(
path
);
TRACE
(
"adding tempfile %s with path %s
\n
"
,
debugstr_w
(
temp
->
File
),
debugstr_w
(
temp
->
Path
));
return
0
;
}
MSIFOLDER
*
get_loaded_folder
(
MSIPACKAGE
*
package
,
LPCWSTR
dir
)
{
MSIFOLDER
*
folder
;
LIST_FOR_EACH_ENTRY
(
folder
,
&
package
->
folders
,
MSIFOLDER
,
entry
)
{
if
(
lstrcmpW
(
dir
,
folder
->
Directory
)
==
0
)
...
...
@@ -407,7 +398,6 @@ static void remove_tracked_tempfiles(MSIPACKAGE* package)
TRACE
(
"deleting temp file %s
\n
"
,
debugstr_w
(
temp
->
Path
));
if
(
!
DeleteFileW
(
temp
->
Path
))
ERR
(
"failed to delete %s
\n
"
,
debugstr_w
(
temp
->
Path
));
msi_free
(
temp
->
File
);
msi_free
(
temp
->
Path
);
msi_free
(
temp
);
}
...
...
dlls/msi/msipriv.h
View file @
c88c0b45
...
...
@@ -366,7 +366,6 @@ typedef struct tagMSIFILE
typedef
struct
tagMSITEMPFILE
{
struct
list
entry
;
LPWSTR
File
;
LPWSTR
Path
;
}
MSITEMPFILE
;
...
...
@@ -751,7 +750,7 @@ extern MSICOMPONENT *get_loaded_component( MSIPACKAGE* package, LPCWSTR Componen
extern
MSIFEATURE
*
get_loaded_feature
(
MSIPACKAGE
*
package
,
LPCWSTR
Feature
);
extern
MSIFILE
*
get_loaded_file
(
MSIPACKAGE
*
package
,
LPCWSTR
file
);
extern
MSIFOLDER
*
get_loaded_folder
(
MSIPACKAGE
*
package
,
LPCWSTR
dir
);
extern
int
track_tempfile
(
MSIPACKAGE
*
package
,
LPCWSTR
name
,
LPCWSTR
path
);
extern
int
track_tempfile
(
MSIPACKAGE
*
package
,
LPCWSTR
path
);
extern
UINT
schedule_action
(
MSIPACKAGE
*
package
,
UINT
script
,
LPCWSTR
action
);
extern
void
msi_free_action_script
(
MSIPACKAGE
*
package
,
UINT
script
);
extern
LPWSTR
build_icon_path
(
MSIPACKAGE
*
,
LPCWSTR
);
...
...
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