Stream_Read_UINT32(s, UnicodeFlag); /* UnicodeFlag (4 bytes) */
Stream_Seek_UINT32(s); /* CodePage (4 bytes), MUST be set to zero */
Stream_Read_UINT32(s, ComputerNameLen); /* ComputerNameLen (4 bytes) */
-
/* UnicodeFlag is either 0 or 1, the other 31 bits must be ignored.
*/
UnicodeFlag = UnicodeFlag & 0x00000001;
UINT32 DeviceId;
char PreferredDosName[9];
UINT32 DeviceDataLength;
- BYTE* DeviceData;
if (Stream_GetRemainingLength(s) < 4)
{
return ERROR_INVALID_DATA;
}
- DeviceData = Stream_Pointer(s);
WLog_DBG(TAG, "Device %d Name: %s Id: 0x%08"PRIX32" DataLength: %"PRIu32"",
i, PreferredDosName, DeviceId, DeviceDataLength);
buffer = NULL;
BytesReturned = 0;
ChannelEvent = NULL;
-
s = Stream_New(NULL, 4096);
if (!s)