We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93425d5 commit 569bb1fCopy full SHA for 569bb1f
Src/IronPython.Modules/mmap.cs
@@ -846,7 +846,7 @@ public void resize(long newsize) {
846
847
if (newsize == 0) {
848
// resizing to an empty mapped region is not allowed
849
- throw WindowsError(_offset != 0
+ throw WindowsError(_offset != 0 && RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
850
? PythonExceptions._OSError.ERROR_ACCESS_DENIED
851
: PythonExceptions._OSError.ERROR_FILE_INVALID
852
);
0 commit comments