mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s4:torture/rpc/winreg: fix "strict aliasing" compiler warnings
metze
This commit is contained in:
parent
c7ba3c4dcf
commit
b99a02a7d4
@ -2525,21 +2525,21 @@ static bool test_OpenHive(struct torture_context *tctx,
|
||||
break;
|
||||
case HKEY_CURRENT_USER:
|
||||
torture_assert_ntstatus_ok(tctx,
|
||||
dcerpc_winreg_OpenHKCU_r(b, tctx, (struct winreg_OpenHKCU *)&r),
|
||||
dcerpc_winreg_OpenHKCU_r(b, tctx, (struct winreg_OpenHKCU *)(void *)&r),
|
||||
"failed to open HKCU");
|
||||
torture_assert_werr_ok(tctx, r.out.result,
|
||||
"failed to open HKCU");
|
||||
break;
|
||||
case HKEY_USERS:
|
||||
torture_assert_ntstatus_ok(tctx,
|
||||
dcerpc_winreg_OpenHKU_r(b, tctx, (struct winreg_OpenHKU *)&r),
|
||||
dcerpc_winreg_OpenHKU_r(b, tctx, (struct winreg_OpenHKU *)(void *)&r),
|
||||
"failed to open HKU");
|
||||
torture_assert_werr_ok(tctx, r.out.result,
|
||||
"failed to open HKU");
|
||||
break;
|
||||
case HKEY_CLASSES_ROOT:
|
||||
torture_assert_ntstatus_ok(tctx,
|
||||
dcerpc_winreg_OpenHKCR_r(b, tctx, (struct winreg_OpenHKCR *)&r),
|
||||
dcerpc_winreg_OpenHKCR_r(b, tctx, (struct winreg_OpenHKCR *)(void *)&r),
|
||||
"failed to open HKCR");
|
||||
torture_assert_werr_ok(tctx, r.out.result,
|
||||
"failed to open HKCR");
|
||||
|
Loading…
x
Reference in New Issue
Block a user