[dlls/shdocvw] Initialize variable (Coverity)

Paul Vriens paul.vriens.wine at gmail.com
Tue Feb 1 10:21:55 CST 2011


On 02/01/2011 03:26 PM, Nikolay Sivov wrote:
> On 2/1/2011 17:14, Paul Vriens wrote:
>> Hi,
>>
>> Addresses Coverity #1090.
>>
>> If CoCreateInstance() fails we check the uninitialized urlfile variable.
> Same story with urlobj. In fact it looks better to try CoCreateInstance
> first, before anything else like lstrcpy and just return earlier on
> failure.
>
>

Isn't urlobj, NULL'ed by CoCreateInstance on failure?

-- 
Cheers,

Paul.



More information about the wine-devel mailing list