[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: shell32: Implement IApplicationAssociationRegistration, QueryCurrentDefault (try 6)
From: Nikolay Sivov <bunglehead () gmail ! com>
Date: 2015-01-23 9:05:57
Message-ID: 54C20EF5.2090408 () gmail ! com
[Download RAW message or body]
On 23.01.2015 10:24, Alistair Leslie-Hughes wrote:
> + ret = RegGetValueW(hkey, NULL, NULL, RRF_RT_REG_SZ, &keytype, NULL, \
> &size); + if(ret == ERROR_SUCCESS)
> + {
> + *association = CoTaskMemAlloc(size * sizeof(WCHAR));
Does it really return length in characters? I thought it's always in bytes.
> + if(*association)
> + {
> + ret = RegGetValueW(hkey, NULL, NULL, RRF_RT_REG_SZ, &keytype, \
> *association, &size); + if(ret == ERROR_SUCCESS)
> + hr = S_OK;
> + }
> + }
In case of !*association please return earlier with E_OUTOFMEMORY.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic