[PATCH 1/2] dsound: Only initialize 1 guid for capture and renderer

Alexandre Julliard julliard at winehq.org
Wed Dec 9 07:03:38 CST 2009


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...

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list