Take 3: DDRAW: Fix reference counting

Stefan Dösinger stefandoesinger at gmx.at
Mon Sep 19 10:01:42 CDT 2005

This patch increases the reference count of a DirectDraw object when a
Surface is created, like Windows does. It also adds a test which tests
this functionality.

This time with the !FAILED() -> SUCCEEDED() suggestion from
Robert Shearman. I kept adding a secound refcount in case of
DDSCAPS_TEXTURE surfaces to achieve more compatiblity with Windows.

Also fixed the test output to say "texture surface" instead of "mipmap 

Hope I got it right this time. Sorry for the confusion :-(
Stefan Dösinger

-------------- next part --------------
A non-text attachment was scrubbed...
Name: refcount.diff
Type: text/x-diff
Size: 9679 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050919/0e2b5b9f/refcount-0001.diff

More information about the wine-patches mailing list