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
fd21557b
Commit
fd21557b
authored
Sep 29, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
browseui: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3ce68396
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
progressdlg.c
dlls/browseui/progressdlg.c
+3
-5
autocomplete.c
dlls/browseui/tests/autocomplete.c
+1
-1
No files found.
dlls/browseui/progressdlg.c
View file @
fd21557b
...
...
@@ -86,15 +86,13 @@ 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
)
{
IMalloc
*
malloc
;
ULONG
cb
;
if
(
string
==
NULL
)
string
=
empty_string
;
string
=
L""
;
CoGetMalloc
(
MEMCTX_TASK
,
&
malloc
);
cb
=
(
lstrlenW
(
string
)
+
1
)
*
sizeof
(
WCHAR
);
...
...
@@ -134,9 +132,9 @@ static void update_dialog(ProgressDialog *This, DWORD dwUpdate)
SetWindowTextW
(
This
->
hwnd
,
This
->
title
);
if
(
dwUpdate
&
UPDATE_LINE1
)
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
,
(
This
->
isCancelled
?
empty_string
:
This
->
lines
[
0
]));
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
,
(
This
->
isCancelled
?
L""
:
This
->
lines
[
0
]));
if
(
dwUpdate
&
UPDATE_LINE2
)
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
+
1
,
(
This
->
isCancelled
?
empty_string
:
This
->
lines
[
1
]));
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
+
1
,
(
This
->
isCancelled
?
L""
:
This
->
lines
[
1
]));
if
(
dwUpdate
&
UPDATE_LINE3
)
SetDlgItemTextW
(
This
->
hwnd
,
IDC_TEXT_LINE
+
2
,
(
This
->
isCancelled
?
This
->
cancelMsg
:
This
->
lines
[
2
]));
...
...
dlls/browseui/tests/autocomplete.c
View file @
fd21557b
...
...
@@ -227,7 +227,7 @@ static void test_ACLMulti(void)
{
const
char
*
strings1
[]
=
{
"a"
,
"c"
,
"e"
};
const
char
*
strings2
[]
=
{
"a"
,
"b"
,
"d"
};
WCHAR
exp
[]
=
{
'A'
,
'B'
,
'C'
,
0
}
;
const
WCHAR
exp
[]
=
L"ABC"
;
IEnumString
*
obj
;
IEnumACString
*
unk
;
HRESULT
hr
;
...
...
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