[PATCH 1/2] dsound: Only initialize 1 guid for capture and renderer
Maarten Lankhorst
m.b.lankhorst at gmail.com
Wed Dec 9 08:46:46 CST 2009
Hi,
Alexandre Julliard schreef:
> Maarten Lankhorst <m.b.lankhorst at gmail.com> writes:
>
>
>> @@ -355,8 +357,8 @@ HRESULT WINAPI DirectSoundEnumerateW(
>> if (devs > 0) {
>> if (GetDeviceID(&DSDEVID_DefaultPlayback, &guid) == DS_OK) {
>> static const WCHAR empty[] = { 0 };
>> - for (wod = 0; wod < devs; ++wod) {
>> - if (IsEqualGUID( &guid, &DSOUND_renderer_guids[wod] ) ) {
>> + wod = guid.Data4[7];
>> + if (wod < devs) { {
>>
>
> Now that's an interesting indentation style...
>
I didn't want to reindent since I was planning on removing that code
anyway, and this was more readable, ah well, I'll resend i guess.
Cheers,
Maarten.
More information about the wine-devel
mailing list