r18668: fix ref pointer related bugs, we should watch the compiler warnings!
[samba.git] / source4 / torture / rpc / remact.c
index 067073f5016175aa22580a64666be004e56eb3d3..b893471290767fbc8078d0ae8bd14a4ca9b44e00 100644 (file)
@@ -58,8 +58,8 @@ static int test_RemoteActivation(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
                return 0;
        }
 
-       if(!W_ERROR_IS_OK(r.out.hr)) {
-               printf("RemoteActivation: %s\n", win_errstr(r.out.hr));
+       if(!W_ERROR_IS_OK(*r.out.hr)) {
+               printf("RemoteActivation: %s\n", win_errstr(*r.out.hr));
                return 0;
        }
 
@@ -83,8 +83,8 @@ static int test_RemoteActivation(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
                return 0;
        }
 
-       if(!W_ERROR_IS_OK(r.out.hr)) {
-               printf("RemoteActivation(GetClassObject): %s\n", win_errstr(r.out.hr));
+       if(!W_ERROR_IS_OK(*r.out.hr)) {
+               printf("RemoteActivation(GetClassObject): %s\n", win_errstr(*r.out.hr));
                return 0;
        }