registry: Improve error codes and update tests.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 18 Jan 2008 01:45:00 +0000 (02:45 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 18 Jan 2008 02:41:59 +0000 (03:41 +0100)
commit1e31fcb8a097810a97e2d4bb1f243f1b34cc2415
tree107aadfde85120ae09aaffcc5952e394ce74b4e8
parent94fb39cfd967455ce5a554720c1c7e6183f91056
registry: Improve error codes and update tests.

Rather than map the error returned by the registry to the correct error,
return the correct error in the first place.

Also deal with the fact that the right error code is now returned in a
couple of places.
source/lib/registry/dir.c
source/lib/registry/ldb.c
source/lib/registry/patchfile.c
source/lib/registry/regf.c
source/lib/registry/tests/hive.c
source/lib/registry/tests/registry.c
source/rpc_server/winreg/rpc_winreg.c