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
129889b2
Commit
129889b2
authored
May 27, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notepad: Use the ARRAY_SIZE() macro if we already have it.
parent
cdc5b0c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
dialog.c
programs/notepad/dialog.c
+1
-1
main.c
programs/notepad/main.c
+4
-4
No files found.
programs/notepad/dialog.c
View file @
129889b2
...
...
@@ -257,7 +257,7 @@ void DoOpenFile(LPCWSTR szFileName)
SetFocus
(
Globals
.
hEdit
);
/* If the file starts with .LOG, add a time/date at the end and set cursor after */
if
(
GetWindowTextW
(
Globals
.
hEdit
,
log
,
sizeof
(
log
)
/
sizeof
(
log
[
0
]
))
&&
!
lstrcmpW
(
log
,
dotlog
))
if
(
GetWindowTextW
(
Globals
.
hEdit
,
log
,
ARRAY_SIZE
(
log
))
&&
!
lstrcmpW
(
log
,
dotlog
))
{
static
const
WCHAR
lfW
[]
=
{
'\r'
,
'\n'
,
0
};
SendMessageW
(
Globals
.
hEdit
,
EM_SETSEL
,
GetWindowTextLengthW
(
Globals
.
hEdit
),
-
1
);
...
...
programs/notepad/main.c
View file @
129889b2
...
...
@@ -203,10 +203,10 @@ static VOID NOTEPAD_LoadSettingFromRegistry(void)
Globals
.
lfFont
.
lfPitchAndFamily
=
FIXED_PITCH
|
FF_DONTCARE
;
lstrcpyW
(
Globals
.
lfFont
.
lfFaceName
,
systemW
);
LoadStringW
(
Globals
.
hInstance
,
STRING_PAGESETUP_HEADERVALUE
,
Globals
.
szHeader
,
sizeof
(
Globals
.
szHeader
)
/
sizeof
(
Globals
.
szHeader
[
0
]
));
LoadStringW
(
Globals
.
hInstance
,
STRING_PAGESETUP_FOOTERVALUE
,
Globals
.
szFooter
,
sizeof
(
Globals
.
szFooter
)
/
sizeof
(
Globals
.
szFooter
[
0
]
));
LoadStringW
(
Globals
.
hInstance
,
STRING_PAGESETUP_HEADERVALUE
,
Globals
.
szHeader
,
ARRAY_SIZE
(
Globals
.
szHeader
));
LoadStringW
(
Globals
.
hInstance
,
STRING_PAGESETUP_FOOTERVALUE
,
Globals
.
szFooter
,
ARRAY_SIZE
(
Globals
.
szFooter
));
if
(
RegOpenKeyW
(
HKEY_CURRENT_USER
,
notepad_reg_key
,
&
hkey
)
==
ERROR_SUCCESS
)
{
...
...
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