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
04f9058a
Commit
04f9058a
authored
Sep 01, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set the OutOfNoRbDiskSpace property.
parent
90f023a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
action.c
dlls/msi/action.c
+3
-0
package.c
dlls/msi/tests/package.c
+6
-0
No files found.
dlls/msi/action.c
View file @
04f9058a
...
...
@@ -2355,6 +2355,8 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
static
const
WCHAR
szPrimaryVolumeSpaceAvailable
[]
=
{
'P'
,
'r'
,
'i'
,
'm'
,
'a'
,
'r'
,
'y'
,
'V'
,
'o'
,
'l'
,
'u'
,
'm'
,
'e'
,
'S'
,
'p'
,
'a'
,
'c'
,
'e'
,
'A'
,
'v'
,
'a'
,
'i'
,
'l'
,
'a'
,
'b'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
szOutOfNoRbDiskSpace
[]
=
{
'O'
,
'u'
,
't'
,
'O'
,
'f'
,
'N'
,
'o'
,
'R'
,
'b'
,
'D'
,
'i'
,
's'
,
'k'
,
'S'
,
'p'
,
'a'
,
'c'
,
'e'
,
0
};
MSICOMPONENT
*
comp
;
MSIQUERY
*
view
;
WCHAR
*
level
,
*
primary_key
,
*
primary_folder
;
...
...
@@ -2431,6 +2433,7 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
/* FIXME: check volume disk space */
msi_set_property
(
package
->
db
,
szOutOfDiskSpace
,
szZero
,
-
1
);
msi_set_property
(
package
->
db
,
szOutOfNoRbDiskSpace
,
szZero
,
-
1
);
return
MSI_SetFeatureStates
(
package
);
}
...
...
dlls/msi/tests/package.c
View file @
04f9058a
...
...
@@ -1145,6 +1145,12 @@ static void test_settargetpath(void)
r
=
MsiDoActionA
(
hpkg
,
"CostFinalize"
);
ok
(
r
==
ERROR_SUCCESS
,
"cost finalize failed
\n
"
);
buffer
[
0
]
=
0
;
sz
=
sizeof
(
buffer
);
r
=
MsiGetPropertyA
(
hpkg
,
"OutOfNoRbDiskSpace"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiGetProperty returned %u
\n
"
,
r
);
trace
(
"OutOfNoRbDiskSpace =
\"
%s
\"\n
"
,
buffer
);
r
=
MsiSetTargetPathA
(
0
,
NULL
,
NULL
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"wrong return val
\n
"
);
...
...
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