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
32c0a764
Commit
32c0a764
authored
Sep 14, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Sep 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add the total and free disk space to the VolumeCostList control.
parent
34e03fc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
dialog.c
dlls/msi/dialog.c
+20
-7
No files found.
dlls/msi/dialog.c
View file @
32c0a764
...
...
@@ -2290,7 +2290,6 @@ static void msi_dialog_vcl_add_columns( msi_dialog *dialog, msi_control *control
WCHAR
num
[
10
];
LVCOLUMNW
lvc
;
DWORD
count
=
0
;
LRESULT
r
;
static
const
WCHAR
zero
[]
=
{
'0'
,
0
};
static
const
WCHAR
negative
[]
=
{
'-'
,
0
};
...
...
@@ -2316,20 +2315,20 @@ static void msi_dialog_vcl_add_columns( msi_dialog *dialog, msi_control *control
if
(
!
strncmpW
(
num
,
negative
,
1
)
||
!
str_is_number
(
num
)
)
return
;
lvc
.
mask
=
LVCF_FMT
|
LVCF_ORDER
|
LVCF_WIDTH
|
LVCF_TEXT
;
lvc
.
iOrder
=
count
;
lvc
.
pszText
=
msi_dialog_get_uitext
(
dialog
,
column_keys
[
count
++
]
);
ZeroMemory
(
&
lvc
,
sizeof
(
lvc
)
);
lvc
.
mask
=
LVCF_TEXT
|
LVCF_WIDTH
|
LVCF_SUBITEM
;
lvc
.
cx
=
atolW
(
num
);
lvc
.
fmt
=
LVCFMT_LEFT
;
lvc
.
pszText
=
msi_dialog_get_uitext
(
dialog
,
column_keys
[
count
]
)
;
r
=
SendMessageW
(
control
->
hwnd
,
LVM_INSERTCOLUMNW
,
0
,
(
LPARAM
)
&
lvc
);
SendMessageW
(
control
->
hwnd
,
LVM_INSERTCOLUMNW
,
count
++
,
(
LPARAM
)
&
lvc
);
msi_free
(
lvc
.
pszText
);
if
(
r
)
return
;
}
}
static
void
msi_dialog_vcl_add_drives
(
msi_dialog
*
dialog
,
msi_control
*
control
)
{
ULARGE_INTEGER
total
,
free
;
WCHAR
size_text
[
MAX_PATH
];
LPWSTR
drives
,
ptr
;
LVITEMW
lvitem
;
DWORD
size
;
...
...
@@ -2353,6 +2352,20 @@ static void msi_dialog_vcl_add_drives( msi_dialog *dialog, msi_control *control
lvitem
.
cchTextMax
=
lstrlenW
(
ptr
)
+
1
;
SendMessageW
(
control
->
hwnd
,
LVM_INSERTITEMW
,
0
,
(
LPARAM
)
&
lvitem
);
GetDiskFreeSpaceExW
(
ptr
,
&
free
,
&
total
,
NULL
);
StrFormatByteSizeW
(
total
.
QuadPart
,
size_text
,
MAX_PATH
);
lvitem
.
iSubItem
=
1
;
lvitem
.
pszText
=
size_text
;
lvitem
.
cchTextMax
=
lstrlenW
(
size_text
)
+
1
;
SendMessageW
(
control
->
hwnd
,
LVM_SETITEMW
,
0
,
(
LPARAM
)
&
lvitem
);
StrFormatByteSizeW
(
free
.
QuadPart
,
size_text
,
MAX_PATH
);
lvitem
.
iSubItem
=
2
;
lvitem
.
pszText
=
size_text
;
lvitem
.
cchTextMax
=
lstrlenW
(
size_text
)
+
1
;
SendMessageW
(
control
->
hwnd
,
LVM_SETITEMW
,
0
,
(
LPARAM
)
&
lvitem
);
ptr
+=
lstrlenW
(
ptr
)
+
1
;
i
++
;
}
...
...
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