r18742: this function returns WERROR
authorStefan Metzmacher <metze@samba.org>
Wed, 20 Sep 2006 20:45:23 +0000 (20:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:00:53 +0000 (12:00 -0500)
gix the build on RedHat 7.0

metze
(This used to be commit d6f5a0cc7a7833f36288ec6201da6b4422b22c97)

source3/rpc_server/srv_wkssvc_nt.c

index ead1b7b918fcbdb55346ebb8481bf123853369ce..f46bbf98b2a0a3baeeacd035c6fb0af0e773a868 100644 (file)
@@ -65,18 +65,18 @@ WERROR _wkssvc_NetWkstaGetInfo( pipes_struct *p, const char *server_name, uint32
        /* We only support info level 100 currently */
        
        if ( level != 100 ) {
-               return NT_STATUS_INVALID_LEVEL;
+               return WERR_UNKNOWN_LEVEL;
        }
 
        if ( (wks100 = TALLOC_ZERO_P(p->mem_ctx, struct wkssvc_NetWkstaInfo100)) == NULL ) {
-               return NT_STATUS_NO_MEMORY;
+               return WERR_NOMEM;
        }
 
        create_wks_info_100( wks100 );
        
        info->info100 = wks100;
 
-       return NT_STATUS_OK;
+       return WERR_OK;
 }
 
 /********************************************************************