Skip to content

Commit

Permalink
info: Fix incompatible pointer type
Browse files Browse the repository at this point in the history
This fixes the following:
```
libfreerdp/core/info.c: In function ‘rdp_read_info_null_string’:
libfreerdp/core/info.c:88:39: error: initialization of ‘const WCHAR *’ {aka ‘const short unsigned int *’} from incompatible pointer type ‘BYTE *’ {aka ‘unsigned char *’} [-Wincompatible-pointer-types]
   88 |                 const WCHAR* domain = Stream_Pointer(s);
```
  • Loading branch information
AlessandroBono committed May 8, 2024
1 parent a383740 commit 4f41119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libfreerdp/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static BOOL rdp_read_info_null_string(const char* what, UINT32 flags, wStream* s

if (cbLen > 0)
{
const WCHAR* domain = Stream_Pointer(s);
const WCHAR* domain = (WCHAR*)Stream_Pointer(s);

if (isNullTerminated && (max > 0))
max -= nullSize;
Expand Down

0 comments on commit 4f41119

Please sign in to comment.