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
53e04ef3
Commit
53e04ef3
authored
Oct 05, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clock: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
28df6726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
main.c
programs/clock/main.c
+5
-9
No files found.
programs/clock/main.c
View file @
53e04ef3
...
...
@@ -104,10 +104,9 @@ static BOOL CLOCK_ResetTimer(void)
period
=
1000
;
if
(
!
SetTimer
(
Globals
.
hMainWnd
,
TIMER_ID
,
period
,
NULL
))
{
static
const
WCHAR
notimersW
[]
=
{
'N'
,
'o'
,
' '
,
'a'
,
'v'
,
'a'
,
'i'
,
'l'
,
'a'
,
'b'
,
'l'
,
'e'
,
' '
,
't'
,
'i'
,
'm'
,
'e'
,
'r'
,
's'
,
0
};
WCHAR
szApp
[
MAX_STRING_LEN
];
LoadStringW
(
Globals
.
hInstance
,
IDS_CLOCK
,
szApp
,
MAX_STRING_LEN
);
MessageBoxW
(
0
,
notimersW
,
szApp
,
MB_ICONEXCLAMATION
|
MB_OK
);
MessageBoxW
(
0
,
L"No available timers"
,
szApp
,
MB_ICONEXCLAMATION
|
MB_OK
);
return
FALSE
;
}
return
TRUE
;
...
...
@@ -390,9 +389,6 @@ int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show
MSG
msg
;
WNDCLASSW
class
;
static
const
WCHAR
szClassName
[]
=
{
'C'
,
'L'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
0
};
static
const
WCHAR
szWinName
[]
=
{
'C'
,
'l'
,
'o'
,
'c'
,
'k'
,
0
};
/* Setup Globals */
memset
(
&
Globals
.
hFont
,
0
,
sizeof
(
Globals
.
hFont
));
Globals
.
bAnalog
=
TRUE
;
...
...
@@ -408,13 +404,13 @@ int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show
class
.
hCursor
=
LoadCursorW
(
0
,
(
LPCWSTR
)
IDC_ARROW
);
class
.
hbrBackground
=
0
;
class
.
lpszMenuName
=
0
;
class
.
lpszClassName
=
szClassName
;
class
.
lpszClassName
=
L"CLClass"
;
}
if
(
!
RegisterClassW
(
&
class
))
return
FALSE
;
Globals
.
MaxX
=
Globals
.
MaxY
=
INITIAL_WINDOW_SIZE
;
Globals
.
hMainWnd
=
CreateWindowW
(
szClassName
,
szWinName
,
WS_OVERLAPPEDWINDOW
,
Globals
.
hMainWnd
=
CreateWindowW
(
L"CLClass"
,
L"Clock"
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
Globals
.
MaxX
,
Globals
.
MaxY
,
0
,
0
,
hInstance
,
0
);
...
...
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