version: Use proper type for third parameter of VerQueryValue
Dmitry Timoshkov
dmitry at baikal.ru
Tue Mar 29 05:20:00 CST 2005
"Uwe Bonnes" <bon at elektron.ikp.physik.tu-darmstadt.de> wrote:
> >> -DWORD WINAPI VerQueryValueA(LPVOID,LPCSTR,LPVOID*,UINT*); -DWORD
> >> WINAPI VerQueryValueW(LPVOID,LPCWSTR,LPVOID*,UINT*); +BOOL WINAPI
> >> VerQueryValueA(const LPVOID,LPCSTR,UINT*,UINT*); +BOOL WINAPI
> >> VerQueryValueW(const LPVOID,LPCWSTR,UINT*,UINT*);
>
> Dmitry> Where did you get it? PSDK agrees with current Wine definition
> Dmitry> on the 3rd param type. Also the 2nd param should not be 'const'.
>
> MSDN (look with Google for VerQueryValue and use the first hit) has
> (const LPVOID ..., LPTSTR ..., PUINT ..., PUINT ...)
MSDN is known to contradict with PSDK headers. PSDK February 2003 has the following:
VerQueryValueA(
const LPVOID pBlock,
LPSTR lpSubBlock,
LPVOID * lplpBuffer,
PUINT puLen
);
BOOL
APIENTRY
VerQueryValueW(
const LPVOID pBlock,
LPWSTR lpSubBlock,
LPVOID * lplpBuffer,
PUINT puLen
);
--
Dmitry.
More information about the wine-devel
mailing list