mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Use correct type of pointer in SafeArrayCreateVector to avoid memory
corruption. Add traces.
This commit is contained in:
parent
f0df2b2c51
commit
d21e32a04f
1 changed files with 5 additions and 1 deletions
|
@ -262,6 +262,8 @@ SAFEARRAY* WINAPI SafeArrayCreate(
|
|||
HRESULT hRes;
|
||||
USHORT cDim;
|
||||
|
||||
TRACE("(%d, %d, %p)\n", vt, cDims, rgsabound);
|
||||
|
||||
/* Validate supported VARTYPE */
|
||||
if ( (vt >= LAST_VARTYPE) ||
|
||||
( VARTYPE_SIZE[vt] == VARTYPE_NOT_SUPPORTED ) )
|
||||
|
@ -859,7 +861,9 @@ SAFEARRAY* WINAPI SafeArrayCreateVector(
|
|||
ULONG cElements)
|
||||
{
|
||||
SAFEARRAY *psa;
|
||||
LPVOID *ptr;
|
||||
BYTE *ptr;
|
||||
|
||||
TRACE("%d, %ld, %ld\n", vt, lLbound, cElements);
|
||||
|
||||
/* Validate supported VARTYPE */
|
||||
if ( (vt >= LAST_VARTYPE) ||
|
||||
|
|
Loading…
Reference in a new issue