Changes from APPLIANCE_HEAD:
authorDavid O'Neill <dmo@samba.org>
Wed, 22 Nov 2000 16:19:07 +0000 (16:19 +0000)
committerDavid O'Neill <dmo@samba.org>
Wed, 22 Nov 2000 16:19:07 +0000 (16:19 +0000)
    - Add code to test equivalence of private data in NT_DEVICEMODE
(This used to be commit 684981851ffa3b51e78a6fd5960e219823eb90d5)

source3/rpc_server/srv_spoolss_nt.c

index 0fea4a87632590b391b2276fc1410c1f101d2dc7..1ef6a8c11ba17b653e3c2bf3d136cdecd5e469d2 100644 (file)
@@ -3549,10 +3549,10 @@ static BOOL nt_devicemode_equal(NT_DEVICEMODE *d1, NT_DEVICEMODE *d2)
                return False;
        }
 
                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;
 }
 
        return True;
 }