On 10/29/2014 08:13 AM, Alistair Leslie-Hughes wrote:
+#if 0
- /* Crashes under Win7 */ hr = IDirectPlayX_GetSessionDesc( pDP[0], lpData[0], NULL ); checkHR( DPERR_INVALIDPARAM, hr ); dwDataSize=-1; hr = IDirectPlayX_GetSessionDesc( pDP[0], lpData[0], &dwDataSize ); checkHR( DPERR_INVALIDPARAMS, hr ); check( -1, dwDataSize );
+#endif
That's the same. Wine test use if (0) {} block to disable code. Also you don't need checkHR() at all in such cases.