mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-27 13:29:17 -05:00
Lose a couple of build warnings.
This commit is contained in:
parent
e6006a207d
commit
be4000631c
@ -176,7 +176,7 @@ BOOL CALLBACK Application::StaticWindowSearcher(HWND hwnd, LPARAM lparam)
|
||||
{
|
||||
DWORD result;
|
||||
LRESULT ok = ::SendMessageTimeout(hwnd,
|
||||
lparam,
|
||||
static_cast<UINT>(lparam),
|
||||
0, 0,
|
||||
SMTO_BLOCK |
|
||||
SMTO_ABORTIFHUNG,
|
||||
|
@ -117,7 +117,7 @@ void ServerEvents::OnEvent(const void *buffer, size_t bytes_received)
|
||||
UINT32 id = received[4] | (received[5] << 8) | (received[6] << 16) | (received[7] << 24);
|
||||
UINT32 intval = received[8] | (received[9] << 8) | (received[10] << 16) | (received[11] << 24);
|
||||
|
||||
size_t string_length = bytes_received - 12;
|
||||
int string_length = static_cast<int>(bytes_received) - 12;
|
||||
|
||||
if ((packet_size < bytes_received) && (packet_size >= 12))
|
||||
string_length = packet_size - 12;
|
||||
|
Loading…
x
Reference in New Issue
Block a user