mirror of
https://github.com/samba-team/samba.git
synced 2025-10-29 04:23:51 +03:00
r8171: According to Samba 3 and Ethereal, the winreg_OpenUnkown stuff is
actually a uint16 * without the [string] attribute, a la the the system_name argument to samr_Connect(). Initialising the pointer to NULL is sufficient and we still pass the RPC-WINREG test against win2k3.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
117e678bde
commit
407d962dac
@@ -43,12 +43,9 @@ static void init_winreg_String(struct winreg_String *name, const char *s)
|
||||
#define openhive(u) static WERROR open_ ## u(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *hnd) \
|
||||
{ \
|
||||
struct winreg_Open ## u r; \
|
||||
struct winreg_OpenUnknown unknown; \
|
||||
NTSTATUS status; \
|
||||
\
|
||||
unknown.unknown0 = 0x84e0; \
|
||||
unknown.unknown1 = 0x0000; \
|
||||
r.in.unknown = &unknown; \
|
||||
r.in.system_name = 0; \
|
||||
r.in.access_required = SEC_FLAG_MAXIMUM_ALLOWED; \
|
||||
r.out.handle = hnd;\
|
||||
\
|
||||
|
||||
Reference in New Issue
Block a user