hotplug dsound: zero new device count on error
This commit is contained in:
parent
231ecf77c7
commit
b95f3bd6a2
1 changed files with 4 additions and 1 deletions
|
|
@ -315,7 +315,8 @@ typedef struct PaWinDsStream
|
|||
|
||||
} PaWinDsStream;
|
||||
|
||||
typedef struct PaWinDsScanDeviceInfosResults{ /* used for tranferring device infos during scanning / rescanning */
|
||||
typedef struct PaWinDsScanDeviceInfosResults
|
||||
{
|
||||
PaDeviceInfo **deviceInfos;
|
||||
PaDeviceIndex defaultInputDevice;
|
||||
PaDeviceIndex defaultOutputDevice;
|
||||
|
|
@ -1615,6 +1616,8 @@ error:
|
|||
{
|
||||
FreeDeviceInfos( winDsHostApi->allocations, outArgument->deviceInfos );
|
||||
}
|
||||
*newDeviceCount = 0;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue