--- Lionel Ulmer <lionel.ulmer(a)free.fr> a écrit : > > Well, I said the wrong words to explain me :/.
Disabling the test in our code, will the function fail or not ?
It will crash in the AddRef code. Better to try to do something like that :
if (found == NULL) { TRACE("Did not find any valid surface\n"); *ppSurface = NULL; return DD_OK; } I get the same behaviour with this code enabled as with the whole test disabled.
===== Sylvain Petreolle spetreolle(a)users.sourceforge.net Fight against Spam ! http://www.euro.cauce.org/en/index.html ICQ #170597259 "Don't think you are. Know you are." Morpheus in Matrix, chapter 15. ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com