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
f55c5f37
Commit
f55c5f37
authored
Jul 11, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
47df11ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
atl30.c
dlls/atl/atl30.c
+1
-1
atl_ax.c
dlls/atl/atl_ax.c
+1
-1
registrar.c
dlls/atl/registrar.c
+2
-2
No files found.
dlls/atl/atl30.c
View file @
f55c5f37
...
...
@@ -374,7 +374,7 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW
if
(
!
wci
->
m_wc
.
lpszClassName
)
{
static
const
WCHAR
szFormat
[]
=
{
'A'
,
'T'
,
'L'
,
'%'
,
'0'
,
'8'
,
'l'
,
'x'
,
0
};
snprintfW
(
wci
->
m_szAutoName
,
sizeof
(
wci
->
m_szAutoName
)
/
sizeof
(
WCHAR
),
szFormat
,
(
UINT_PTR
)
wci
);
snprintfW
(
wci
->
m_szAutoName
,
ARRAY_SIZE
(
wci
->
m_szAutoName
),
szFormat
,
(
UINT_PTR
)
wci
);
TRACE
(
"auto-generated class name %s
\n
"
,
debugstr_w
(
wci
->
m_szAutoName
));
wci
->
m_wc
.
lpszClassName
=
wci
->
m_szAutoName
;
}
...
...
dlls/atl/atl_ax.c
View file @
f55c5f37
...
...
@@ -1268,7 +1268,7 @@ static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl)
if
(
GET_WORD
(
tmp
)
==
'{'
)
/* all this mess created because of this line */
{
static
const
WCHAR
AtlAxWin
[]
=
{
'A'
,
't'
,
'l'
,
'A'
,
'x'
,
'W'
,
'i'
,
'n'
,
0
};
PUT_BLOCK
(
AtlAxWin
,
sizeof
(
AtlAxWin
)
/
sizeof
(
WCHAR
));
PUT_BLOCK
(
AtlAxWin
,
ARRAY_SIZE
(
AtlAxWin
));
PUT_BLOCK
(
tmp
,
strlenW
(
tmp
)
+
1
);
}
else
PUT_BLOCK
(
tmp
,
src
-
tmp
);
...
...
dlls/atl/registrar.c
View file @
f55c5f37
...
...
@@ -394,11 +394,11 @@ static HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register)
hres
=
DISP_E_EXCEPTION
;
break
;
}
for
(
i
=
0
;
i
<
sizeof
(
root_keys
)
/
sizeof
(
root_keys
[
0
]
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
root_keys
);
i
++
)
{
if
(
!
lstrcmpiW
(
buf
.
str
,
root_keys
[
i
].
name
))
break
;
}
if
(
i
==
sizeof
(
root_keys
)
/
sizeof
(
root_keys
[
0
]
))
{
if
(
i
==
ARRAY_SIZE
(
root_keys
))
{
WARN
(
"Wrong root key name: %s
\n
"
,
debugstr_w
(
buf
.
str
));
hres
=
DISP_E_EXCEPTION
;
break
;
...
...
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