1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 06:59:01 +00:00

Use just PAGE_READWRITE, not PAGE_READONLY | PAGE_READWRITE in the call to

CreateFileMapping in utils.cc. The combination of two flags was illegal, and
caused a crash that looks like
..\utils.cc(996): CreateFileMapping(), file 'testresume', length 103,
mflags 000
00006: The parameter is incorrect.
 (87) 
The crash could be caused by resuming a scan with --resume on Windows.
This commit is contained in:
david
2007-12-14 09:06:45 +00:00
parent ecbf4d785b
commit c517a80acd
2 changed files with 10 additions and 1 deletions

View File

@@ -974,7 +974,7 @@ char *mmapfile(char *fname, int *length, int openflags)
}
else {
oflags = GENERIC_READ | GENERIC_WRITE;
mflags = PAGE_READONLY | PAGE_READWRITE;
mflags = PAGE_READWRITE;
}
fd = CreateFile (