~zulcss/ubuntu/lucid/likewise-open/likewise-open-sru

« back to all changes in this revision

Viewing changes to samba/source/rpc_client/cli_reg.c

  • Committer: Bazaar Package Importer
  • Author(s): Rick Clark
  • Date: 2008-08-27 08:56:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080827085620-5q0f58b9qtog9myq
Tags: 4.1.0.2956-0ubuntu1
* missing-likewise-logo.diff: removed
* fixed copyright notice
* updated Standards-Version to 3.8.0
* removed path from command in prerm
* removed stop in S runlevel

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
                         uint32 reg_type, uint32 access_mask,
30
30
                         POLICY_HND *reg_hnd)
31
31
{
32
 
        ZERO_STRUCTP(reg_hnd);
 
32
        ZERO_STRUCTP(reg_hnd);
33
33
 
34
 
        switch (reg_type)
35
 
        {
36
 
        case HKEY_CLASSES_ROOT:
 
34
        if (reg_type == HKEY_CLASSES_ROOT)
37
35
                return rpccli_winreg_OpenHKCR( cli, mem_ctx, NULL, 
38
 
                        access_mask, reg_hnd, NULL);
39
 
 
40
 
        case HKEY_LOCAL_MACHINE:
 
36
                                               access_mask, reg_hnd, NULL);
 
37
        else if (reg_type == HKEY_LOCAL_MACHINE)
41
38
                return rpccli_winreg_OpenHKLM( cli, mem_ctx, NULL, 
42
 
                        access_mask, reg_hnd, NULL);
43
 
 
44
 
        case HKEY_USERS:
 
39
                                               access_mask, reg_hnd, NULL);
 
40
        else if (reg_type == HKEY_USERS)
45
41
                return rpccli_winreg_OpenHKU( cli, mem_ctx, NULL, 
46
 
                        access_mask, reg_hnd, NULL);
47
 
 
48
 
        case HKEY_CURRENT_USER:
 
42
                                              access_mask, reg_hnd, NULL);
 
43
        else if (reg_type == HKEY_CURRENT_USER)
49
44
                return rpccli_winreg_OpenHKCU( cli, mem_ctx, NULL, 
50
 
                        access_mask, reg_hnd, NULL);
51
 
 
52
 
        case HKEY_PERFORMANCE_DATA:
 
45
                                               access_mask, reg_hnd, NULL);
 
46
        else if (reg_type == HKEY_PERFORMANCE_DATA)
53
47
                return rpccli_winreg_OpenHKPD( cli, mem_ctx, NULL, 
54
 
                        access_mask, reg_hnd, NULL);
55
 
 
56
 
        default:
57
 
                /* fall through to end of function */
58
 
                break;
59
 
        }
60
 
 
61
 
        return NT_STATUS_INVALID_PARAMETER;
 
48
                                               access_mask, reg_hnd, NULL);
 
49
        else
 
50
                return NT_STATUS_INVALID_PARAMETER;
62
51
}
63
52
 
64
53
/*******************************************************************