svn commit: samba r5240 - in
branches/SAMBA_4_0/source/lib/registry/common: .
jelmer at samba.org
jelmer at samba.org
Sat Feb 5 23:10:32 GMT 2005
Author: jelmer
Date: 2005-02-05 23:10:31 +0000 (Sat, 05 Feb 2005)
New Revision: 5240
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5240
Log:
Don't return WERR_OK when no values were found (reported by Matt Cobb)
Modified:
branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c
===================================================================
--- branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c 2005-02-05 22:23:09 UTC (rev 5239)
+++ branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c 2005-02-05 23:10:31 UTC (rev 5240)
@@ -384,10 +384,10 @@
}
}
- if(!W_ERROR_IS_OK(error) && !W_ERROR_EQUAL(error, WERR_NO_MORE_ITEMS))
- return error;
-
- return WERR_OK;
+ if (W_ERROR_EQUAL(error, WERR_NO_MORE_ITEMS))
+ return WERR_DEST_NOT_FOUND;
+
+ return error;
}
WERROR reg_key_del(struct registry_key *parent, const char *name)
More information about the samba-cvs
mailing list