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
dc84b8a4
Commit
dc84b8a4
authored
Mar 25, 2005
by
Mike Hearn
Committed by
Alexandre Julliard
Mar 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't fault on NULL pointers in Is*Ptr functions.
parent
9b796515
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
virtual.c
dlls/kernel/virtual.c
+8
-0
No files found.
dlls/kernel/virtual.c
View file @
dc84b8a4
...
...
@@ -526,6 +526,8 @@ BOOL WINAPI IsBadReadPtr(
UINT
size
)
/* [in] Size of block */
{
if
(
!
size
)
return
FALSE
;
/* handle 0 size case w/o reference */
if
(
!
ptr
)
return
TRUE
;
if
(
!
page_size
)
page_size
=
getpagesize
();
__TRY
{
...
...
@@ -564,6 +566,8 @@ BOOL WINAPI IsBadWritePtr(
UINT
size
)
/* [in] Size of block in bytes */
{
if
(
!
size
)
return
FALSE
;
/* handle 0 size case w/o reference */
if
(
!
ptr
)
return
TRUE
;
if
(
!
page_size
)
page_size
=
getpagesize
();
__TRY
{
...
...
@@ -641,6 +645,8 @@ BOOL WINAPI IsBadStringPtrA(
LPCSTR
str
,
/* [in] Address of string */
UINT
max
)
/* [in] Maximum size of string */
{
if
(
!
str
)
return
TRUE
;
__TRY
{
volatile
const
char
*
p
=
str
;
...
...
@@ -662,6 +668,8 @@ BOOL WINAPI IsBadStringPtrA(
*/
BOOL
WINAPI
IsBadStringPtrW
(
LPCWSTR
str
,
UINT
max
)
{
if
(
!
str
)
return
TRUE
;
__TRY
{
volatile
const
WCHAR
*
p
=
str
;
...
...
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