BSTR of length 0 is allowed.
This commit is contained in:
parent
bfeca3bff9
commit
92940e0c4f
|
@ -1512,7 +1512,7 @@ static void MSFT_ReadValue( VARIANT * pVar, int offset, TLBContext *pcx )
|
||||||
case VT_BSTR :{
|
case VT_BSTR :{
|
||||||
char * ptr;
|
char * ptr;
|
||||||
MSFT_ReadLEDWords(&size, sizeof(INT), pcx, DO_NOT_SEEK );
|
MSFT_ReadLEDWords(&size, sizeof(INT), pcx, DO_NOT_SEEK );
|
||||||
if(size <= 0) {
|
if(size < 0) {
|
||||||
FIXME("BSTR length = %d?\n", size);
|
FIXME("BSTR length = %d?\n", size);
|
||||||
} else {
|
} else {
|
||||||
ptr=TLB_Alloc(size);/* allocate temp buffer */
|
ptr=TLB_Alloc(size);/* allocate temp buffer */
|
||||||
|
|
Loading…
Reference in New Issue