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
3ef703ad
Commit
3ef703ad
authored
Nov 13, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Track temp files as soon as they are created.
parent
1767989b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
custom.c
dlls/msi/custom.c
+1
-11
No files found.
dlls/msi/custom.c
View file @
3ef703ad
...
@@ -307,6 +307,7 @@ static UINT store_binary_to_temp(MSIPACKAGE *package, LPCWSTR source,
...
@@ -307,6 +307,7 @@ static UINT store_binary_to_temp(MSIPACKAGE *package, LPCWSTR source,
TRACE
(
"Unable to create file
\n
"
);
TRACE
(
"Unable to create file
\n
"
);
return
ERROR_FUNCTION_FAILED
;
return
ERROR_FUNCTION_FAILED
;
}
}
track_tempfile
(
package
,
tmp_file
,
tmp_file
);
/* write out the file */
/* write out the file */
file
=
CreateFileW
(
tmp_file
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
file
=
CreateFileW
(
tmp_file
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
...
@@ -327,7 +328,6 @@ static UINT store_binary_to_temp(MSIPACKAGE *package, LPCWSTR source,
...
@@ -327,7 +328,6 @@ static UINT store_binary_to_temp(MSIPACKAGE *package, LPCWSTR source,
{
{
ERR
(
"Failed to get stream
\n
"
);
ERR
(
"Failed to get stream
\n
"
);
CloseHandle
(
file
);
CloseHandle
(
file
);
DeleteFileW
(
tmp_file
);
break
;
break
;
}
}
WriteFile
(
file
,
buffer
,
sz
,
&
write
,
NULL
);
WriteFile
(
file
,
buffer
,
sz
,
&
write
,
NULL
);
...
@@ -549,11 +549,6 @@ static UINT HANDLE_CustomType1(MSIPACKAGE *package, LPCWSTR source,
...
@@ -549,11 +549,6 @@ static UINT HANDLE_CustomType1(MSIPACKAGE *package, LPCWSTR source,
r
=
process_handle
(
package
,
type
,
ThreadHandle
,
NULL
,
action
,
&
finished
);
r
=
process_handle
(
package
,
type
,
ThreadHandle
,
NULL
,
action
,
&
finished
);
if
(
!
finished
)
track_tempfile
(
package
,
tmp_file
,
tmp_file
);
else
DeleteFileW
(
tmp_file
);
return
r
;
return
r
;
}
}
...
@@ -612,11 +607,6 @@ static UINT HANDLE_CustomType2(MSIPACKAGE *package, LPCWSTR source,
...
@@ -612,11 +607,6 @@ static UINT HANDLE_CustomType2(MSIPACKAGE *package, LPCWSTR source,
r
=
process_handle
(
package
,
type
,
info
.
hThread
,
info
.
hProcess
,
action
,
r
=
process_handle
(
package
,
type
,
info
.
hThread
,
info
.
hProcess
,
action
,
&
finished
);
&
finished
);
if
(
!
finished
)
track_tempfile
(
package
,
tmp_file
,
tmp_file
);
else
DeleteFileW
(
tmp_file
);
return
r
;
return
r
;
}
}
...
...
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