1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s3-spoolss: make sure to return success in winreg_get_driver_list() for a

non-existing architecture / version combination.

Guenther
This commit is contained in:
Günther Deschner 2010-04-26 21:02:12 +02:00
parent 83e324c417
commit ed3852c2c2

View File

@ -4026,6 +4026,9 @@ WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
TALLOC_CTX *tmp_ctx;
WERROR result;
*num_drivers = 0;
*drivers_p = NULL;
ZERO_STRUCT(hive_hnd);
ZERO_STRUCT(key_hnd);
@ -4049,6 +4052,7 @@ WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
DEBUG(5, ("winreg_get_driver_list: "
"Could not open key (%s,%u): %s\n",
architecture, version, win_errstr(result)));
result = WERR_OK;
goto done;
}