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
90ca3620
Commit
90ca3620
authored
Oct 18, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user.exe16: Fixed incorrect sizeof() (Coverity).
parent
31b3cbfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
user.c
dlls/user.exe16/user.c
+2
-2
No files found.
dlls/user.exe16/user.c
View file @
90ca3620
...
...
@@ -1357,7 +1357,7 @@ LONG WINAPI TabbedTextOut16( HDC16 hdc, INT16 x, INT16 y, LPCSTR lpstr,
INT16
count
,
INT16
nb_tabs
,
const
INT16
*
tabs16
,
INT16
tab_org
)
{
LONG
ret
;
INT
i
,
*
tabs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nb_tabs
*
sizeof
(
tabs
)
);
INT
i
,
*
tabs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nb_tabs
*
sizeof
(
*
tabs
)
);
if
(
!
tabs
)
return
0
;
for
(
i
=
0
;
i
<
nb_tabs
;
i
++
)
tabs
[
i
]
=
tabs16
[
i
];
ret
=
TabbedTextOutA
(
HDC_32
(
hdc
),
x
,
y
,
lpstr
,
count
,
nb_tabs
,
tabs
,
tab_org
);
...
...
@@ -1373,7 +1373,7 @@ DWORD WINAPI GetTabbedTextExtent16( HDC16 hdc, LPCSTR lpstr, INT16 count,
INT16
nb_tabs
,
const
INT16
*
tabs16
)
{
LONG
ret
;
INT
i
,
*
tabs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nb_tabs
*
sizeof
(
tabs
)
);
INT
i
,
*
tabs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nb_tabs
*
sizeof
(
*
tabs
)
);
if
(
!
tabs
)
return
0
;
for
(
i
=
0
;
i
<
nb_tabs
;
i
++
)
tabs
[
i
]
=
tabs16
[
i
];
ret
=
GetTabbedTextExtentA
(
HDC_32
(
hdc
),
lpstr
,
count
,
nb_tabs
,
tabs
);
...
...
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