s3-spoolss: Fix an issue in _spoolss_DeleteForm.
authorGünther Deschner <gd@samba.org>
Wed, 7 Apr 2010 21:36:48 +0000 (23:36 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 7 Apr 2010 21:53:19 +0000 (23:53 +0200)
Found by torture test.

Guenther

source3/printing/nt_printing.c

index 5096ca0599b8cbd2149567f6c83f2c8518ea0729..3791c0dfc7134471dbae4c40bbdc307bc7c3181e 100644 (file)
@@ -918,7 +918,7 @@ bool delete_a_form(nt_forms_struct **list, const char *del_name, int *count, WER
 
        if (n == *count) {
                DEBUG(10,("delete_a_form, [%s] not found\n", del_name));
-               *ret = WERR_INVALID_PARAM;
+               *ret = WERR_INVALID_FORM_NAME;
                return False;
        }