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
cd220569
Commit
cd220569
authored
Mar 01, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Fix IsBad* prototypes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d37b3f59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
virtual.c
dlls/kernel32/virtual.c
+8
-8
winbase.h
include/winbase.h
+6
-6
No files found.
dlls/kernel32/virtual.c
View file @
cd220569
...
...
@@ -647,7 +647,7 @@ UINT WINAPI ResetWriteWatch( LPVOID base, SIZE_T size )
* Success: TRUE.
* Failure: FALSE. Process has read access to entire block.
*/
BOOL
WINAPI
IsBadReadPtr
(
LPCVOID
ptr
,
UINT
size
)
BOOL
WINAPI
IsBadReadPtr
(
LPCVOID
ptr
,
UINT
_PTR
size
)
{
if
(
!
size
)
return
FALSE
;
/* handle 0 size case w/o reference */
if
(
!
ptr
)
return
TRUE
;
...
...
@@ -655,7 +655,7 @@ BOOL WINAPI IsBadReadPtr( LPCVOID ptr, UINT size )
{
volatile
const
char
*
p
=
ptr
;
char
dummy
__attribute__
((
unused
));
UINT
count
=
size
;
UINT
_PTR
count
=
size
;
while
(
count
>
system_info
.
PageSize
)
{
...
...
@@ -689,14 +689,14 @@ BOOL WINAPI IsBadReadPtr( LPCVOID ptr, UINT size )
* Success: TRUE.
* Failure: FALSE. Process has write access to entire block.
*/
BOOL
WINAPI
IsBadWritePtr
(
LPVOID
ptr
,
UINT
size
)
BOOL
WINAPI
IsBadWritePtr
(
LPVOID
ptr
,
UINT
_PTR
size
)
{
if
(
!
size
)
return
FALSE
;
/* handle 0 size case w/o reference */
if
(
!
ptr
)
return
TRUE
;
__TRY
{
volatile
char
*
p
=
ptr
;
UINT
count
=
size
;
UINT
_PTR
count
=
size
;
while
(
count
>
system_info
.
PageSize
)
{
...
...
@@ -730,7 +730,7 @@ BOOL WINAPI IsBadWritePtr( LPVOID ptr, UINT size )
* Success: TRUE.
* Failure: FALSE. Process has read access to entire block.
*/
BOOL
WINAPI
IsBadHugeReadPtr
(
LPCVOID
ptr
,
UINT
size
)
BOOL
WINAPI
IsBadHugeReadPtr
(
LPCVOID
ptr
,
UINT
_PTR
size
)
{
return
IsBadReadPtr
(
ptr
,
size
);
}
...
...
@@ -749,7 +749,7 @@ BOOL WINAPI IsBadHugeReadPtr( LPCVOID ptr, UINT size )
* Success: TRUE.
* Failure: FALSE. Process has write access to entire block.
*/
BOOL
WINAPI
IsBadHugeWritePtr
(
LPVOID
ptr
,
UINT
size
)
BOOL
WINAPI
IsBadHugeWritePtr
(
LPVOID
ptr
,
UINT
_PTR
size
)
{
return
IsBadWritePtr
(
ptr
,
size
);
}
...
...
@@ -786,7 +786,7 @@ BOOL WINAPI IsBadCodePtr( FARPROC ptr )
* Success: TRUE.
* Failure: FALSE. Read access to all bytes in string.
*/
BOOL
WINAPI
IsBadStringPtrA
(
LPCSTR
str
,
UINT
max
)
BOOL
WINAPI
IsBadStringPtrA
(
LPCSTR
str
,
UINT
_PTR
max
)
{
if
(
!
str
)
return
TRUE
;
...
...
@@ -810,7 +810,7 @@ BOOL WINAPI IsBadStringPtrA( LPCSTR str, UINT max )
*
* See IsBadStringPtrA.
*/
BOOL
WINAPI
IsBadStringPtrW
(
LPCWSTR
str
,
UINT
max
)
BOOL
WINAPI
IsBadStringPtrW
(
LPCWSTR
str
,
UINT
_PTR
max
)
{
if
(
!
str
)
return
TRUE
;
...
...
include/winbase.h
View file @
cd220569
...
...
@@ -2236,13 +2236,13 @@ WINBASEAPI PSLIST_ENTRY WINAPI InterlockedFlushSList(PSLIST_HEADER);
WINBASEAPI
PSLIST_ENTRY
WINAPI
InterlockedPopEntrySList
(
PSLIST_HEADER
);
WINBASEAPI
PSLIST_ENTRY
WINAPI
InterlockedPushEntrySList
(
PSLIST_HEADER
,
PSLIST_ENTRY
);
WINBASEAPI
BOOL
WINAPI
IsBadCodePtr
(
FARPROC
);
WINBASEAPI
BOOL
WINAPI
IsBadHugeReadPtr
(
LPCVOID
,
UINT
);
WINBASEAPI
BOOL
WINAPI
IsBadHugeWritePtr
(
LPVOID
,
UINT
);
WINBASEAPI
BOOL
WINAPI
IsBadReadPtr
(
LPCVOID
,
UINT
);
WINBASEAPI
BOOL
WINAPI
IsBadStringPtrA
(
LPCSTR
,
UINT
);
WINBASEAPI
BOOL
WINAPI
IsBadStringPtrW
(
LPCWSTR
,
UINT
);
WINBASEAPI
BOOL
WINAPI
IsBadHugeReadPtr
(
LPCVOID
,
UINT
_PTR
);
WINBASEAPI
BOOL
WINAPI
IsBadHugeWritePtr
(
LPVOID
,
UINT
_PTR
);
WINBASEAPI
BOOL
WINAPI
IsBadReadPtr
(
LPCVOID
,
UINT
_PTR
);
WINBASEAPI
BOOL
WINAPI
IsBadStringPtrA
(
LPCSTR
,
UINT
_PTR
);
WINBASEAPI
BOOL
WINAPI
IsBadStringPtrW
(
LPCWSTR
,
UINT
_PTR
);
#define IsBadStringPtr WINELIB_NAME_AW(IsBadStringPtr)
WINBASEAPI
BOOL
WINAPI
IsBadWritePtr
(
LPVOID
,
UINT
);
WINBASEAPI
BOOL
WINAPI
IsBadWritePtr
(
LPVOID
,
UINT
_PTR
);
WINBASEAPI
BOOL
WINAPI
IsDebuggerPresent
(
void
);
WINBASEAPI
BOOL
WINAPI
IsSystemResumeAutomatic
(
void
);
WINADVAPI
BOOL
WINAPI
IsTextUnicode
(
LPCVOID
,
INT
,
LPINT
);
...
...
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