Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb1ef19

Browse files
Dobatymoeryksun
andauthored
Apply suggestions from code review
rename HandlePageException to filter_page_exception Co-authored-by: Eryk Sun <[email protected]>
1 parent cd4b1fc commit cb1ef19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/mmapmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ do { \
257257

258258
#if defined(MS_WIN32) && !defined(DONT_USE_SEH)
259259
static DWORD
260-
HandlePageException(EXCEPTION_POINTERS *ptrs, EXCEPTION_RECORD *record)
260+
filter_page_exception(EXCEPTION_POINTERS *ptrs, EXCEPTION_RECORD *record)
261261
{
262262
*record = *ptrs->ExceptionRecord;
263263
if (ptrs->ExceptionRecord->ExceptionCode == EXCEPTION_IN_PAGE_ERROR) {
@@ -281,7 +281,7 @@ safe_memcpy(void *restrict dest, const void *restrict src, size_t count) {
281281
memcpy(dest, src, count);
282282
return 0;
283283
}
284-
__except (HandlePageException(GetExceptionInformation(), &record)) {
284+
__except (filter_page_exception(GetExceptionInformation(), &record)) {
285285
NTSTATUS status = record.ExceptionInformation[2];
286286
ULONG code = LsaNtStatusToWinError(status);
287287
PyErr_SetFromWindowsErr(code);

0 commit comments

Comments
 (0)