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
6ed10c80
Commit
6ed10c80
authored
Feb 08, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make a temp file for each dll saved for custom actions. This prevents
name collisions from causing custom actions to fail.
parent
c1e5c4a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
custom.c
dlls/msi/custom.c
+7
-7
No files found.
dlls/msi/custom.c
View file @
6ed10c80
...
...
@@ -232,17 +232,17 @@ static UINT store_binary_to_temp(MSIPACKAGE *package, LPCWSTR source,
LPWSTR
tmp_file
)
{
DWORD
sz
=
MAX_PATH
;
static
const
WCHAR
f1
[]
=
{
'm'
,
's'
,
'i'
,
0
};
WCHAR
fmt
[
MAX_PATH
];
if
(
MSI_GetPropertyW
(
package
,
cszTempFolder
,
tmp_file
,
&
sz
)
if
(
MSI_GetPropertyW
(
package
,
cszTempFolder
,
fmt
,
&
sz
)
!=
ERROR_SUCCESS
)
GetTempPathW
(
MAX_PATH
,
tmp_file
);
GetTempPathW
(
MAX_PATH
,
fmt
);
strcatW
(
tmp_file
,
source
);
if
(
GetFileAttributesW
(
tmp_file
)
!=
INVALID_FILE_ATTRIBUTES
)
if
(
GetTempFileNameW
(
fmt
,
f1
,
0
,
tmp_file
)
==
0
)
{
TRACE
(
"
File already exists
\n
"
);
return
ERROR_
SUCCESS
;
TRACE
(
"
Unable to create file
\n
"
);
return
ERROR_
FUNCTION_FAILED
;
}
else
{
...
...
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