s3-rpc_server: Make it possible to use more rpc exceptions.
[kai/samba.git] / source3 / rpc_server / winreg / srv_winreg_nt.c
index 6fee5b6acd944e30f7609e496e4cea1eda57817e..176848b0d634b70be5645e33045330eff62fbee2 100644 (file)
@@ -761,7 +761,7 @@ WERROR _winreg_SaveKeyEx(struct pipes_struct *p,
        /* fill in your code here if you think this call should
           do anything */
 
-       p->rng_fault_state = True;
+       p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
        return WERR_NOT_SUPPORTED;
 }
 
@@ -949,7 +949,7 @@ WERROR _winreg_UnLoadKey(struct pipes_struct *p,
        /* fill in your code here if you think this call should
           do anything */
 
-       p->rng_fault_state = True;
+       p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
        return WERR_NOT_SUPPORTED;
 }
 
@@ -963,7 +963,7 @@ WERROR _winreg_ReplaceKey(struct pipes_struct *p,
        /* fill in your code here if you think this call should
           do anything */
 
-       p->rng_fault_state = True;
+       p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
        return WERR_NOT_SUPPORTED;
 }
 
@@ -977,7 +977,7 @@ WERROR _winreg_LoadKey(struct pipes_struct *p,
        /* fill in your code here if you think this call should
           do anything */
 
-       p->rng_fault_state = True;
+       p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
        return WERR_NOT_SUPPORTED;
 }
 
@@ -1140,6 +1140,6 @@ WERROR _winreg_DeleteKeyEx(struct pipes_struct *p,
        /* fill in your code here if you think this call should
           do anything */
 
-       p->rng_fault_state = True;
+       p->fault_state = DCERPC_FAULT_OP_RNG_ERROR;
        return WERR_NOT_SUPPORTED;
 }