mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s3-spoolss: fix type-punned pointer build warning.
Guenther
This commit is contained in:
parent
743a2dedf4
commit
bf19a5228a
@ -4045,13 +4045,15 @@ WERROR winreg_get_driver(TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
for (i = 0; i < num_values; i++) {
|
for (i = 0; i < num_values; i++) {
|
||||||
const char *tmp_str;
|
const char *tmp_str;
|
||||||
|
uint32_t tmp = 0;
|
||||||
|
|
||||||
v = &enum_values[i];
|
v = &enum_values[i];
|
||||||
|
|
||||||
result = winreg_enumval_to_dword(info8, v,
|
result = winreg_enumval_to_dword(info8, v,
|
||||||
"Version",
|
"Version",
|
||||||
(uint32_t *) &info8->version);
|
&tmp);
|
||||||
CHECK_ERROR(result);
|
CHECK_ERROR(result);
|
||||||
|
info8->version = tmp;
|
||||||
|
|
||||||
result = winreg_enumval_to_sz(info8, v,
|
result = winreg_enumval_to_sz(info8, v,
|
||||||
"Driver",
|
"Driver",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user