diff options
author | Andreas Schneider <asn@samba.org> | 2012-05-07 09:36:35 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-05-09 11:12:59 +0200 |
commit | 0d87c0fe97056d6e8589f86d9403447e39f12745 (patch) | |
tree | f936e23d1a83511e4fb0ffd1f605c0f611764eeb | |
parent | e09f05731d734090a31b97082bcbb3933380bf76 (diff) | |
download | samba-0d87c0fe97056d6e8589f86d9403447e39f12745.tar.gz samba-0d87c0fe97056d6e8589f86d9403447e39f12745.tar.bz2 samba-0d87c0fe97056d6e8589f86d9403447e39f12745.zip |
s3-spoolss: Set DWORD values correctly.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed May 9 11:13:00 CEST 2012 on sn-devel-104
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 34582b2180..3a6fc35793 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -2305,26 +2305,26 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *mem_ctx, if (!strcasecmp_m(value, "W3SvcInstalled")) { *type = REG_DWORD; - data->value = 0x00; + SIVAL(&data->value, 0, 0x00); return WERR_OK; } if (!strcasecmp_m(value, "BeepEnabled")) { *type = REG_DWORD; - data->value = 0x00; + SIVAL(&data->value, 0, 0x00); return WERR_OK; } if (!strcasecmp_m(value, "EventLog")) { *type = REG_DWORD; /* formally was 0x1b */ - data->value = 0x00; + SIVAL(&data->value, 0, 0x00); return WERR_OK; } if (!strcasecmp_m(value, "NetPopup")) { *type = REG_DWORD; - data->value = 0x00; + SIVAL(&data->value, 0, 0x00); return WERR_OK; } @@ -2337,9 +2337,9 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *mem_ctx, -- jerry */ if (RA_WINNT == get_remote_arch()) { - data->value = 0x02; + SIVAL(&data->value, 0, 0x02); } else { - data->value = 0x03; + SIVAL(&data->value, 0, 0x03); } return WERR_OK; @@ -2347,7 +2347,7 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *mem_ctx, if (!strcasecmp_m(value, "MinorVersion")) { *type = REG_DWORD; - data->value = 0x00; + SIVAL(&data->value, 0, 0x00); return WERR_OK; } @@ -2406,9 +2406,9 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *mem_ctx, member of a AD domain */ if (lp_security() == SEC_ADS) { - data->value = 0x01; + SIVAL(&data->value, 0, 0x01); } else { - data->value = 0x00; + SIVAL(&data->value, 0, 0x00); } return WERR_OK; } |