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
25955703
Commit
25955703
authored
Dec 22, 2004
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix folder resolution.
parent
7b113e83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
action.c
dlls/msi/action.c
+1
-1
package.c
dlls/msi/package.c
+12
-0
No files found.
dlls/msi/action.c
View file @
25955703
...
...
@@ -281,7 +281,7 @@ static LPWSTR PACKAGE_GetProperty(MSIPACKAGE *package, LPCWSTR prop)
UINT
r
;
r
=
MSI_GetPropertyW
(
package
,
prop
,
NULL
,
&
sz
);
if
(
r
!=
ERROR_SUCCESS
)
if
(
r
!=
ERROR_SUCCESS
&&
r
!=
ERROR_MORE_DATA
)
return
NULL
;
sz
++
;
str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sz
*
sizeof
(
WCHAR
));
...
...
dlls/msi/package.c
View file @
25955703
...
...
@@ -169,6 +169,7 @@ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/prope
static
VOID
set_installer_properties
(
MSIPACKAGE
*
package
)
{
WCHAR
pth
[
MAX_PATH
];
WCHAR
*
ptr
;
OSVERSIONINFOA
OSVersion
;
DWORD
verval
;
WCHAR
verstr
[
10
],
msiver
[
10
];
...
...
@@ -210,6 +211,8 @@ static VOID set_installer_properties(MSIPACKAGE *package)
{
'P'
,
'e'
,
'r'
,
's'
,
'o'
,
'n'
,
'a'
,
'l'
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
WF
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
WV
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'V'
,
'o'
,
'l'
,
'u'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
TF
[]
=
{
'T'
,
'e'
,
'm'
,
'p'
,
'F'
,
'o'
,
'l'
,
'd'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
szAdminUser
[]
=
...
...
@@ -332,6 +335,12 @@ Privileged
strcatW
(
pth
,
cszbs
);
MSI_SetPropertyW
(
package
,
WF
,
pth
);
SHGetFolderPathW
(
NULL
,
CSIDL_WINDOWS
,
NULL
,
0
,
pth
);
ptr
=
strchrW
(
pth
,
'\\'
);
if
(
ptr
)
*
ptr
=
0
;
MSI_SetPropertyW
(
package
,
WV
,
pth
);
GetTempPathW
(
MAX_PATH
,
pth
);
MSI_SetPropertyW
(
package
,
TF
,
pth
);
...
...
@@ -768,6 +777,9 @@ UINT MSI_GetPropertyW(MSIPACKAGE *package, LPCWSTR szName,
if
(
rc
==
ERROR_SUCCESS
)
TRACE
(
"returning %s for property %s
\n
"
,
debugstr_w
(
szValueBuf
),
debugstr_w
(
szName
));
else
if
(
rc
==
ERROR_MORE_DATA
)
TRACE
(
"need %i sized buffer for %s
\n
"
,
*
pchValueBuf
,
debugstr_w
(
szName
));
else
{
*
pchValueBuf
=
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