-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2015-02-05 um 05:14 schrieb Austin English:
+HRESULT WINAPI D3DXDisassembleShader(const DWORD *shader, BOOL colorcode, LPCSTR comments, LPD3DXBUFFER *disassembly)
Please no LPCRAP:
LPCSTR -> const char * LPD3DXBUFFER * -> ID3DXBuffer **
It is even written this way in our header.
Stefan Dösinger stefandoesinger@gmail.com wrote:
Am 2015-02-05 um 05:14 schrieb Austin English:
+HRESULT WINAPI D3DXDisassembleShader(const DWORD *shader, BOOL colorcode, LPCSTR comments, LPD3DXBUFFER *disassembly)
Please no LPCRAP:
LPCSTR -> const char *
That's how it's supposed to look like - LPCSTR, not const char *. This is a public API, not an internal helper.
LPD3DXBUFFER * -> ID3DXBuffer **
It is even written this way in our header.
Then the header should be fixed instead: https://msdn.microsoft.com/ru-ru/library/windows/desktop/bb172820%28v=vs.85%...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2015-02-05 um 09:56 schrieb Dmitry Timoshkov:
LPCSTR -> const char *
That's how it's supposed to look like - LPCSTR, not const char *. This is a public API, not an internal helper.
https://www.winehq.org/pipermail/wine-devel/2010-June/084460.html
Then the header should be fixed instead: https://msdn.microsoft.com/ru-ru/library/windows/desktop/bb172820%28v=vs.85%...
Well, no, it is a good place where the header can be visually different from Microsoft's and still be compatible.
Unless you consider something like
#define LPCSTR float #include <d3d11.h>
an appropriate use of those types.
Stefan Dösinger stefandoesinger@gmail.com wrote:
That's how it's supposed to look like - LPCSTR, not const char *. This is a public API, not an internal helper.
https://www.winehq.org/pipermail/wine-devel/2010-June/084460.html
Then the header should be fixed instead: https://msdn.microsoft.com/ru-ru/library/windows/desktop/bb172820%28v=vs.85%...
Well, no, it is a good place where the header can be visually different from Microsoft's and still be compatible.
A header can be made visually different without using wrong types for public APIs.