From a69a1a87d8f6fece120c423e473b6f67b7a6bb8e Mon Sep 17 00:00:00 2001 From: David O'Neill Date: Wed, 22 Nov 2000 16:19:07 +0000 Subject: Changes from APPLIANCE_HEAD: - Add code to test equivalence of private data in NT_DEVICEMODE (This used to be commit 684981851ffa3b51e78a6fd5960e219823eb90d5) --- source3/rpc_server/srv_spoolss_nt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 0fea4a8763..1ef6a8c11b 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -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; } -- cgit