* pinfo.cc (pinfo::init): Use INVALID_HANDLE_VALUE instead of

explicit cast (HANDLE) 0xffffffff.
        * shared.cc (open_shared): Ditto.
This commit is contained in:
Corinna Vinschen
2001-01-30 08:10:04 +00:00
parent 82ea92f3ea
commit 9928a7e108
3 changed files with 9 additions and 3 deletions

View File

@@ -166,8 +166,8 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h)
}
else
{
h = CreateFileMapping ((HANDLE) 0xffffffff, &sec_all_nih,
PAGE_READWRITE, 0, mapsize, mapname);
h = CreateFileMapping (INVALID_HANDLE_VALUE, &sec_all_nih,
PAGE_READWRITE, 0, mapsize, mapname);
created = h && GetLastError () != ERROR_ALREADY_EXISTS;
}