Fix some typos in docs.

Fix some compiler warnings for win32.
This commit is contained in:
philburk 2012-09-01 00:10:13 +00:00
commit 468c6bceb7
4 changed files with 10 additions and 8 deletions

View file

@ -2728,8 +2728,6 @@ static void CALLBACK WaitableTimerAPCProc(
PA_THREAD_FUNC ProcessingThreadProc( void *pArg )
{
PaWinDsStream *stream = (PaWinDsStream *)pArg;
MMRESULT mmResult;
HANDLE hWaitableTimer;
LARGE_INTEGER dueTime;
int timerPeriodMs;

View file

@ -709,7 +709,8 @@ static PaError InitializeInputDeviceInfo( PaWinMmeHostApiRepresentation *winMmeH
{
/* Append I/O suffix to WAVE_MAPPER device. */
deviceName = (char *)PaUtil_GroupAllocateMemory(
winMmeHostApi->allocations, StrTLen( wic.szPname ) + 1 + sizeof(constInputMapperSuffix_) );
winMmeHostApi->allocations,
(long) (StrTLen( wic.szPname ) + 1 + sizeof(constInputMapperSuffix_)) );
if( !deviceName )
{
result = paInsufficientMemory;
@ -721,7 +722,8 @@ static PaError InitializeInputDeviceInfo( PaWinMmeHostApiRepresentation *winMmeH
else
{
deviceName = (char*)PaUtil_GroupAllocateMemory(
winMmeHostApi->allocations, StrTLen( wic.szPname ) + 1 );
winMmeHostApi->allocations,
(long) (StrTLen( wic.szPname ) + 1) );
if( !deviceName )
{
result = paInsufficientMemory;
@ -835,7 +837,8 @@ static PaError InitializeOutputDeviceInfo( PaWinMmeHostApiRepresentation *winMme
{
/* Append I/O suffix to WAVE_MAPPER device. */
deviceName = (char *)PaUtil_GroupAllocateMemory(
winMmeHostApi->allocations, StrTLen( woc.szPname ) + 1 + sizeof(constOutputMapperSuffix_) );
winMmeHostApi->allocations,
(long) (StrTLen( woc.szPname ) + 1 + sizeof(constOutputMapperSuffix_)) );
if( !deviceName )
{
result = paInsufficientMemory;
@ -847,7 +850,8 @@ static PaError InitializeOutputDeviceInfo( PaWinMmeHostApiRepresentation *winMme
else
{
deviceName = (char*)PaUtil_GroupAllocateMemory(
winMmeHostApi->allocations, StrTLen( woc.szPname ) + 1 );
winMmeHostApi->allocations,
(long) (StrTLen( woc.szPname ) + 1) );
if( !deviceName )
{
result = paInsufficientMemory;