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
3a9587e0
Commit
3a9587e0
authored
Mar 22, 2005
by
Mike Hearn
Committed by
Alexandre Julliard
Mar 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log to +seh when an IsBad* function faults.
parent
4fead33f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
virtual.c
dlls/kernel/virtual.c
+21
-4
No files found.
dlls/kernel/virtual.c
View file @
3a9587e0
...
...
@@ -44,6 +44,7 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
virtual
);
WINE_DECLARE_DEBUG_CHANNEL
(
seh
);
static
unsigned
int
page_size
;
...
...
@@ -541,7 +542,11 @@ BOOL WINAPI IsBadReadPtr(
dummy
=
p
[
0
];
dummy
=
p
[
count
-
1
];
}
__EXCEPT
(
page_fault
)
{
return
TRUE
;
}
__EXCEPT
(
page_fault
)
{
TRACE_
(
seh
)(
"%p caused page fault during read
\n
"
,
ptr
);
return
TRUE
;
}
__ENDTRY
return
FALSE
;
}
...
...
@@ -574,7 +579,11 @@ BOOL WINAPI IsBadWritePtr(
p
[
0
]
|=
0
;
p
[
count
-
1
]
|=
0
;
}
__EXCEPT
(
page_fault
)
{
return
TRUE
;
}
__EXCEPT
(
page_fault
)
{
TRACE_
(
seh
)(
"%p caused page fault during write
\n
"
,
ptr
);
return
TRUE
;
}
__ENDTRY
return
FALSE
;
}
...
...
@@ -637,7 +646,11 @@ BOOL WINAPI IsBadStringPtrA(
volatile
const
char
*
p
=
str
;
while
(
p
!=
str
+
max
)
if
(
!*
p
++
)
break
;
}
__EXCEPT
(
page_fault
)
{
return
TRUE
;
}
__EXCEPT
(
page_fault
)
{
TRACE_
(
seh
)(
"%p caused page fault during read
\n
"
,
str
);
return
TRUE
;
}
__ENDTRY
return
FALSE
;
}
...
...
@@ -654,7 +667,11 @@ BOOL WINAPI IsBadStringPtrW( LPCWSTR str, UINT max )
volatile
const
WCHAR
*
p
=
str
;
while
(
p
!=
str
+
max
)
if
(
!*
p
++
)
break
;
}
__EXCEPT
(
page_fault
)
{
return
TRUE
;
}
__EXCEPT
(
page_fault
)
{
TRACE_
(
seh
)(
"%p caused page fault during read
\n
"
,
str
);
return
TRUE
;
}
__ENDTRY
return
FALSE
;
}
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