obs-outputs: Minor pointer fixes

master
Richard Stanway 2019-06-29 01:10:12 +02:00
parent 183cc920c8
commit 0e77a2c75b
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ static inline PIP_ADAPTER_ADDRESSES get_adapters(void)
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, ret,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
msg_buf, 0, NULL);
(LPSTR)&msg_buf, 0, NULL);
if (msg_buf) {
warn("Call to GetAdaptersAddresses failed: %s (%d)",
msg_buf, ret);

View File

@ -768,7 +768,7 @@ static void win32_log_interface_type(struct rtmp_stream *stream)
if (rtmp->m_bindIP.addrLen == 0)
source_addr = 0;
else if (rtmp->m_bindIP.addr.ss_family == AF_INET)
source_addr = (*(struct sockaddr_in *)&rtmp->m_bindIP)
source_addr = (*(struct sockaddr_in *)&rtmp->m_bindIP.addr)
.sin_addr.S_un.S_addr;
else
return;