WineD3D: Properly initialize a variable

Stefan Dösinger stefandoesinger at gmx.at
Sun Aug 27 05:43:00 CDT 2006


Am Sonntag 27 August 2006 01:01 schrieb H. Verbeet:
> On 26/08/06, Stefan Dösinger <stefan at codeweavers.com> wrote:
> > In IWineD3DSurfaceImpl_SaveSnapshot tmpTexture might be uninitialized,
> > which might lead to accidentally binding the 0 texture.
>
> How does initialising it with 0 help then?
We have a check against != 0 for tmpTexture later on, and if tmpTexture is any 
random value this check might succeed altough no temporary texture was 
created.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20060827/edc56d57/attachment.pgp


More information about the wine-devel mailing list