Throughout replace all usage of wincap.shared with the constant
FILE_SHARE_VALID_FLAGS. * fhandler.cc (fhandler_base::open_9x): Drop local variable shared. * wincap.cc: Remove shared member throughout. * wincap.h: Ditto.
This commit is contained in:
@ -82,8 +82,9 @@ get_inet_addr (const struct sockaddr *in, int inlen,
|
||||
set_errno (EBADF);
|
||||
return 0;
|
||||
}
|
||||
HANDLE fh = CreateFile (pc, GENERIC_READ, wincap.shared (), &sec_none,
|
||||
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
|
||||
HANDLE fh = CreateFile (pc, GENERIC_READ, FILE_SHARE_VALID_FLAGS,
|
||||
&sec_none, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
|
||||
0);
|
||||
if (fh == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
__seterrno ();
|
||||
|
Reference in New Issue
Block a user