Skip to content

Commit caf0a5d

Browse files
committed
Tweak to exception in OpenFileMapping suggested by eryksun.
1 parent 7a3c7e5 commit caf0a5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_winapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ _winapi_OpenFileMapping_impl(PyObject *module, DWORD desired_access,
13911391
Py_END_ALLOW_THREADS
13921392

13931393
if (handle == NULL) {
1394-
PyErr_SetFromWindowsErr(0);
1394+
PyErr_SetFromWindowsErrWithUnicodeFilename(0, name);
13951395
handle = INVALID_HANDLE_VALUE;
13961396
}
13971397

0 commit comments

Comments
 (0)