Re: [PATCH 1/2] dsound: Only initialize 1 guid for capture and renderer
Maarten Lankhorst <m.b.lankhorst(a)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... -- Alexandre Julliard julliard(a)winehq.org
Hi, Alexandre Julliard schreef:
Maarten Lankhorst <m.b.lankhorst(a)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.
participants (2)
-
Alexandre Julliard -
Maarten Lankhorst