d3dx8: Implementation of WINAPI D3DXAssembleShaderFromFileA

Michael Stefaniuc mstefani at redhat.com
Tue Nov 27 09:19:56 CST 2007


Frank Richter wrote:
> On 27.11.2007 09:28, Michael Stefaniuc wrote:
>> Just go for
>> if ( !pSrcFile )
>>    return D3DXERR_INVALIDDATA;
>>
>> LPWSTR pSrcFileW = NULL;
>> DWORD len;
>> HRESULT ret;
>> ...
> 
> That's C++, not C, isn't it?
No it is C as C99 allows to have the variable definitions in the middle
of the code. But Wine itself doesn't allow that and i have missed that.

bye
	michael
-- 
Michael Stefaniuc                           Tel.: +49-711-96437-199
Consulting Communications Engineer          Fax.: +49-711-96437-111
--------------------------------------------------------------------
Reg. Adresse: Red Hat GmbH, Hauptstätter Strasse 58, 70178 Stuttgart
Handelsregister: Amtsgericht Stuttgart HRB 153243
Geschäftsführer: Brendan Lane, Charlie Peters, Michael Cunningham,
                 Werner Knoblich



More information about the wine-devel mailing list