[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [v2 1/2] winejoystick.drv: Add functionality to disable joystick via registry
From:       Ken Thomases <ken () codeweavers ! com>
Date:       2016-08-29 19:46:42
Message-ID: E9698641-5472-4A90-AC85-D898F0230577 () codeweavers ! com
[Download RAW message or body]

On Aug 29, 2016, at 6:03 AM, David Lawrie <david.dljunk@gmail.com> wrote:
> 
> +    get_app_key(&hkey, &appkey);
> +
> +    /* Joystick settings are in the 'joysticks' subkey */
> +    if (appkey)
> +    {
> +        if (RegOpenKeyA(appkey, joystick_key, &temp)) temp = 0;
> +        RegCloseKey(appkey);
> +        appkey = temp;
> +    }
> +    if (hkey)
> +    {
> +        if (RegOpenKeyA(hkey, joystick_key, &temp)) temp = 0;
> +        RegCloseKey(hkey);
> +        hkey = temp;
> +    }

It seems the appending of the Joysticks subkey should be done in get_app_key().

-Ken




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic