Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
16abaccb
Commit
16abaccb
authored
Oct 07, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
view: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3180972e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
view.c
programs/view/view.c
+3
-5
No files found.
programs/view/view.c
View file @
16abaccb
...
...
@@ -24,7 +24,7 @@
static
HINSTANCE
hInst
;
static
HWND
hMainWnd
;
static
WCHAR
szAppName
[
5
]
=
{
'V'
,
'i'
,
'e'
,
'w'
,
0
}
;
static
const
WCHAR
szAppName
[]
=
L"View"
;
static
WCHAR
szTitle
[
MAX_PATH
];
static
WCHAR
szFileTitle
[
MAX_PATH
];
...
...
@@ -52,14 +52,13 @@ typedef struct
static
BOOL
FileOpen
(
HWND
hWnd
,
WCHAR
*
fn
,
int
fnsz
)
{
WCHAR
filter
[
120
],
metafileFilter
[
100
];
static
const
WCHAR
filterW
[]
=
{
'%'
,
's'
,
'%'
,
'c'
,
'*'
,
'.'
,
'w'
,
'm'
,
'f'
,
';'
,
'*'
,
'.'
,
'e'
,
'm'
,
'f'
,
'%'
,
'c'
,
0
};
OPENFILENAMEW
ofn
=
{
sizeof
(
OPENFILENAMEW
),
0
,
0
,
NULL
,
NULL
,
0
,
0
,
NULL
,
fnsz
,
NULL
,
0
,
NULL
,
NULL
,
OFN_SHOWHELP
,
0
,
0
,
NULL
,
0
,
NULL
};
LoadStringW
(
hInst
,
IDS_OPEN_META_STRING
,
metafileFilter
,
ARRAY_SIZE
(
metafileFilter
)
);
swprintf
(
filter
,
ARRAY_SIZE
(
filter
),
filterW
,
metafileFilter
,
0
,
0
);
swprintf
(
filter
,
ARRAY_SIZE
(
filter
),
L"%s%c*.wmf;*.emf%c"
,
metafileFilter
,
0
,
0
);
ofn
.
lpstrFilter
=
filter
;
ofn
.
hwndOwner
=
hWnd
;
...
...
@@ -217,7 +216,6 @@ static void UpdateWindowCaption(void)
{
WCHAR
szCaption
[
MAX_PATH
];
WCHAR
szView
[
MAX_PATH
];
static
const
WCHAR
hyphenW
[]
=
{
' '
,
'-'
,
' '
,
0
};
LoadStringW
(
hInst
,
IDS_DESCRIPTION
,
szView
,
ARRAY_SIZE
(
szView
));
...
...
@@ -225,7 +223,7 @@ static void UpdateWindowCaption(void)
{
lstrcpyW
(
szCaption
,
szFileTitle
);
LoadStringW
(
hInst
,
IDS_DESCRIPTION
,
szView
,
ARRAY_SIZE
(
szView
));
lstrcatW
(
szCaption
,
hyphenW
);
lstrcatW
(
szCaption
,
L" - "
);
lstrcatW
(
szCaption
,
szView
);
}
else
...
...
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