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
962d8b60
Commit
962d8b60
authored
May 02, 2007
by
Huw Davies
Committed by
Alexandre Julliard
May 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Cope with a realloc returning a different pointer.
parent
2d50aa36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ifs.c
dlls/ole32/ifs.c
+4
-2
No files found.
dlls/ole32/ifs.c
View file @
962d8b60
...
...
@@ -56,7 +56,7 @@ typedef struct {
DWORD
SpyedAllocationsLeft
;
/* number of spyed allocations left */
BOOL
SpyReleasePending
;
/* CoRevokeMallocSpy called with spyed allocations left*/
LPVOID
*
SpyedBlocks
;
/* root of the table */
int
SpyedBlockTableLength
;
/* size of the table*/
DWORD
SpyedBlockTableLength
;
/* size of the table*/
}
_Malloc32
;
/* this is the static object instance */
...
...
@@ -73,7 +73,7 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
static
CRITICAL_SECTION
IMalloc32_SpyCS
=
{
&
critsect_debug
,
-
1
,
0
,
0
,
0
,
0
};
/* resize the old table */
static
int
SetSpyedBlockTableLength
(
int
NewLength
)
static
int
SetSpyedBlockTableLength
(
DWORD
NewLength
)
{
LPVOID
*
NewSpyedBlocks
;
...
...
@@ -103,7 +103,9 @@ static int AddMemoryLocation(LPVOID * pMem)
Current
++
;
if
(
Current
>=
Malloc32
.
SpyedBlocks
+
Malloc32
.
SpyedBlockTableLength
)
{
/* no more space in table, grow it */
DWORD
old_length
=
Malloc32
.
SpyedBlockTableLength
;
if
(
!
SetSpyedBlockTableLength
(
Malloc32
.
SpyedBlockTableLength
+
0x1000
))
return
0
;
Current
=
Malloc32
.
SpyedBlocks
+
old_length
;
}
};
...
...
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