Skip to content

Commit

Permalink
Fix some formatter types
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Jan 20, 2020
1 parent d025e15 commit 7f7df59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,8 @@ static HRESULT WINAPI DSBuffer_Unlock(IDirectSoundBuffer8 *iface, void *ptr1, DW

out:
if(hr != S_OK)
WARN("Invalid parameters (0x%lx,%lu) (%p,%lu,%p,%lu)\n", boundary, bufsize, ptr1, len1, ptr2, len2);
WARN("Invalid parameters (%p,%lu) (%p,%lu,%p,%lu)\n", (void*)boundary, bufsize,
ptr1, len1, ptr2, len2);
return hr;
}

Expand Down
6 changes: 3 additions & 3 deletions primary.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ static void trigger_elapsed_notifies(DSBuffer *buf, DWORD lastpos, DWORD curpos)
{
if(ofs < curpos || ofs >= lastpos)
{
TRACE("Triggering notification %d from buffer %p\n", not - buf->notify, buf);
TRACE("Triggering notification %d from buffer %p\n", (int)(not-buf->notify), buf);
SetEvent(event);
}
}
else if(ofs >= lastpos && ofs < curpos) /* Normal case */
{
TRACE("Triggering notification %d from buffer %p\n", not - buf->notify, buf);
TRACE("Triggering notification %d from buffer %p\n", (int)(not-buf->notify), buf);
SetEvent(event);
}
}
Expand All @@ -96,7 +96,7 @@ static void trigger_stop_notifies(DSBuffer *buf)
{
if(not->dwOffset != (DWORD)DSBPN_OFFSETSTOP)
continue;
TRACE("Triggering notification %d from buffer %p\n", not - buf->notify, buf);
TRACE("Triggering notification %d from buffer %p\n", (int)(not-buf->notify), buf);
SetEvent(not->hEventNotify);
}
}
Expand Down

0 comments on commit 7f7df59

Please sign in to comment.