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
be8870d5
Commit
be8870d5
authored
Nov 30, 2018
by
Alex Henrie
Committed by
Alexandre Julliard
Dec 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
browseui: Have a single empty wide string at the top of progressdlg.c.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
63672035
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
progressdlg.c
dlls/browseui/progressdlg.c
+4
-5
No files found.
dlls/browseui/progressdlg.c
View file @
be8870d5
...
...
@@ -89,9 +89,10 @@ static inline ProgressDialog *impl_from_IOleWindow(IOleWindow *iface)
return
CONTAINING_RECORD
(
iface
,
ProgressDialog
,
IOleWindow_iface
);
}
static
const
WCHAR
empty_string
[]
=
{
0
};
static
void
set_buffer
(
LPWSTR
*
buffer
,
LPCWSTR
string
)
{
static
const
WCHAR
empty_string
[]
=
{
0
};
IMalloc
*
malloc
;
ULONG
cb
;
...
...
@@ -132,15 +133,13 @@ static void set_progress_marquee(ProgressDialog *This)
static
void
update_dialog
(
ProgressDialog
*
This
,
DWORD
dwUpdate
)
{
WCHAR
empty
[]
=
{
0
};
if
(
dwUpdate
&
UPDATE_TITLE
)
SetWindowTextW
(
This
->
hwnd
,
This
->
title
);
if
(
dwUpdate
&
UPDATE_LINE1
)
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
,
(
This
->
isCancelled
?
empty
:
This
->
lines
[
0
]));
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
,
(
This
->
isCancelled
?
empty
_string
:
This
->
lines
[
0
]));
if
(
dwUpdate
&
UPDATE_LINE2
)
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
+
1
,
(
This
->
isCancelled
?
empty
:
This
->
lines
[
1
]));
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
+
1
,
(
This
->
isCancelled
?
empty
_string
:
This
->
lines
[
1
]));
if
(
dwUpdate
&
UPDATE_LINE3
)
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
+
2
,
(
This
->
isCancelled
?
This
->
cancelMsg
:
This
->
lines
[
2
]));
...
...
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