mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Changes from APPLIANCE_HEAD:
- Add code to test equivalence of private data in NT_DEVICEMODE
(This used to be commit 684981851f
)
This commit is contained in:
parent
6003be4856
commit
a69a1a87d8
@ -3549,10 +3549,10 @@ static BOOL nt_devicemode_equal(NT_DEVICEMODE *d1, NT_DEVICEMODE *d2)
|
||||
return False;
|
||||
}
|
||||
|
||||
/* Not sure what to do about these fields */
|
||||
#if 0
|
||||
uint8 *private;
|
||||
#endif
|
||||
/* compare the private data if it exists */
|
||||
if (!d1->driverextra && !d2->driverextra) return True;
|
||||
if ( d1->driverextra != d2->driverextra) return False;
|
||||
if (memcmp(d1->private, d2->private, d1->driverextra)) return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user