svn commit: samba r3332 - in branches/SAMBA_4_0/source/torture/rpc: .

jelmer at samba.org jelmer at samba.org
Thu Oct 28 21:24:29 GMT 2004


Author: jelmer
Date: 2004-10-28 21:24:29 +0000 (Thu, 28 Oct 2004)
New Revision: 3332

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3332

Log:
Check result codes in some more places...

Modified:
   branches/SAMBA_4_0/source/torture/rpc/winreg.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/winreg.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/winreg.c	2004-10-28 21:00:38 UTC (rev 3331)
+++ branches/SAMBA_4_0/source/torture/rpc/winreg.c	2004-10-28 21:24:29 UTC (rev 3332)
@@ -126,6 +126,11 @@
 		return False;
 	}
 
+	if (!W_ERROR_IS_OK(r.out.result)) {
+		printf("FlushKey failed - %s\n", win_errstr(r.out.result));
+		return False;
+	}
+
 	return True;
 }
 
@@ -257,7 +262,7 @@
 
 		r.in.enum_index++;
 
-	} while (W_ERROR_IS_OK(r.out.result));
+	} while (NT_STATUS_IS_OK(status) && W_ERROR_IS_OK(r.out.result));
 
 	return True;
 }
@@ -330,6 +335,11 @@
 		return False;
 	}
 
+	if (!W_ERROR_IS_OK(r.out.result)) {
+		printf("OpenHKLM failed - %s\n", win_errstr(r.out.result));
+		return False;
+	}
+
 	return ret;
 }
 



More information about the samba-cvs mailing list