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
5448c534
Commit
5448c534
authored
Dec 09, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Dec 09, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't fail on pointer address checking when foreign heap.
parent
adb46390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
safearray.c
dlls/oleaut32/safearray.c
+5
-2
No files found.
dlls/oleaut32/safearray.c
View file @
5448c534
...
@@ -783,10 +783,13 @@ static BOOL validArg(
...
@@ -783,10 +783,13 @@ static BOOL validArg(
if
(
psa
==
NULL
)
if
(
psa
==
NULL
)
return
FALSE
;
return
FALSE
;
/* Check whether the size of the chunk make
sens
... That's the only thing
/* Check whether the size of the chunk make
s sense
... That's the only thing
I can think of now... */
I can think of now... */
psaSize
=
HeapSize
(
GetProcessHeap
(),
0
,
psa
);
psaSize
=
HeapSize
(
GetProcessHeap
(),
0
,
psa
);
if
(
psaSize
==
-
1
)
/* uh, foreign heap. Better don't mess with it ! */
return
TRUE
;
/* size of the descriptor when the SA is not created with CreateVector */
/* size of the descriptor when the SA is not created with CreateVector */
descSize
=
sizeof
(
*
psa
)
+
(
sizeof
(
*
sab
)
*
(
psa
->
cDims
-
1
));
descSize
=
sizeof
(
*
psa
)
+
(
sizeof
(
*
sab
)
*
(
psa
->
cDims
-
1
));
...
...
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