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
65016636
Commit
65016636
authored
Jan 24, 1999
by
Eric Kohl
Committed by
Alexandre Julliard
Jan 24, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pointer bugs in DPA_InsertPtr() and DPA_DeletePtr().
parent
8305ad50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+5
-5
No files found.
dlls/comctl32/comctl32undoc.c
View file @
65016636
...
@@ -179,7 +179,7 @@ COMCTL32_ReAlloc (LPVOID lpSrc, DWORD dwSize)
...
@@ -179,7 +179,7 @@ COMCTL32_ReAlloc (LPVOID lpSrc, DWORD dwSize)
/**************************************************************************
/**************************************************************************
* Free [COMCTL32.73]
* Free [COMCTL32.73]
.
*
*
* Frees an allocated memory block from the dll's private heap.
* Frees an allocated memory block from the dll's private heap.
*
*
* PARAMS
* PARAMS
...
@@ -1115,8 +1115,8 @@ DPA_InsertPtr (const HDPA hdpa, INT32 i, LPVOID p)
...
@@ -1115,8 +1115,8 @@ DPA_InsertPtr (const HDPA hdpa, INT32 i, LPVOID p)
}
}
else
{
else
{
TRACE
(
commctrl
,
"-- inserting at %d
\n
"
,
i
);
TRACE
(
commctrl
,
"-- inserting at %d
\n
"
,
i
);
lpTemp
=
hdpa
->
ptrs
+
(
sizeof
(
LPVOID
)
*
i
)
;
lpTemp
=
hdpa
->
ptrs
+
i
;
lpDest
=
lpTemp
+
sizeof
(
LPVOID
)
;
lpDest
=
lpTemp
+
1
;
nSize
=
(
hdpa
->
nItemCount
-
i
)
*
sizeof
(
LPVOID
);
nSize
=
(
hdpa
->
nItemCount
-
i
)
*
sizeof
(
LPVOID
);
TRACE
(
commctrl
,
"-- move dest=%p src=%p size=%x
\n
"
,
TRACE
(
commctrl
,
"-- move dest=%p src=%p size=%x
\n
"
,
lpDest
,
lpTemp
,
nSize
);
lpDest
,
lpTemp
,
nSize
);
...
@@ -1216,8 +1216,8 @@ DPA_DeletePtr (const HDPA hdpa, INT32 i)
...
@@ -1216,8 +1216,8 @@ DPA_DeletePtr (const HDPA hdpa, INT32 i)
/* do we need to move ?*/
/* do we need to move ?*/
if
(
i
<
hdpa
->
nItemCount
-
1
)
{
if
(
i
<
hdpa
->
nItemCount
-
1
)
{
lpDest
=
hdpa
->
ptrs
+
(
i
*
sizeof
(
LPVOID
))
;
lpDest
=
hdpa
->
ptrs
+
i
;
lpSrc
=
lpDest
+
sizeof
(
LPVOID
)
;
lpSrc
=
lpDest
+
1
;
nSize
=
(
hdpa
->
nItemCount
-
i
-
1
)
*
sizeof
(
LPVOID
);
nSize
=
(
hdpa
->
nItemCount
-
i
-
1
)
*
sizeof
(
LPVOID
);
TRACE
(
commctrl
,
"-- move dest=%p src=%p size=%x
\n
"
,
TRACE
(
commctrl
,
"-- move dest=%p src=%p size=%x
\n
"
,
lpDest
,
lpSrc
,
nSize
);
lpDest
,
lpSrc
,
nSize
);
...
...
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