mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnigns] fix lots of bugprone warnings
* update-settings-tests: properly cast types in getter/setter * wtypes: fix PHANDLE definition * wStream: fix INT64 write function warnings * Simplify HANDLE copy in channels, just assign after proper cast
This commit is contained in:
@@ -182,7 +182,7 @@ BOOL ndr_read_RPC_UNICODE_STRING(NdrContext* context, wStream* s, const void* hi
|
||||
RPC_UNICODE_STRING* res)
|
||||
{
|
||||
NdrDeferredEntry bufferDesc = { NDR_PTR_NULL, "RPC_UNICODE_STRING.Buffer", &res->lenHints,
|
||||
&res->Buffer, ndr_uint16VaryingArray_descr() };
|
||||
(void*)&res->Buffer, ndr_uint16VaryingArray_descr() };
|
||||
UINT16 Length = 0;
|
||||
UINT16 MaximumLength = 0;
|
||||
|
||||
|
||||
@@ -21,7 +21,8 @@ int TestNdr(int argc, char* argv[])
|
||||
|
||||
BYTE* target = NULL;
|
||||
NdrArrayHints hints = { 2 };
|
||||
NdrDeferredEntry e = { 0x020028, "arrayContent", &hints, &target, ndr_uint8Array_descr() };
|
||||
NdrDeferredEntry e = { 0x020028, "arrayContent", &hints, (void*)&target,
|
||||
ndr_uint8Array_descr() };
|
||||
|
||||
if (!ndr_push_deferreds(context, &e, 1))
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user