mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
netapi32: Avoid shift overflow for GENERIC_READ_ACCESS and friends. friends.
This commit is contained in:
parent
66694cc043
commit
a818d5cab2
1 changed files with 4 additions and 4 deletions
|
@ -506,10 +506,10 @@ static unsigned char ace_flags_to_samba( BYTE flags )
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define GENERIC_ALL_ACCESS (1 << 28)
|
#define GENERIC_ALL_ACCESS (1u << 28)
|
||||||
#define GENERIC_EXECUTE_ACCESS (1 << 29)
|
#define GENERIC_EXECUTE_ACCESS (1u << 29)
|
||||||
#define GENERIC_WRITE_ACCESS (1 << 30)
|
#define GENERIC_WRITE_ACCESS (1u << 30)
|
||||||
#define GENERIC_READ_ACCESS (1 << 31)
|
#define GENERIC_READ_ACCESS (1u << 31)
|
||||||
|
|
||||||
static unsigned int access_mask_to_samba( DWORD mask )
|
static unsigned int access_mask_to_samba( DWORD mask )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue