BSTR of length 0 is allowed.

This commit is contained in:
Robert Shearman 2004-03-22 22:57:51 +00:00 committed by Alexandre Julliard
parent bfeca3bff9
commit 92940e0c4f

View File

@ -1512,7 +1512,7 @@ static void MSFT_ReadValue( VARIANT * pVar, int offset, TLBContext *pcx )
case VT_BSTR :{
char * ptr;
MSFT_ReadLEDWords(&size, sizeof(INT), pcx, DO_NOT_SEEK );
if(size <= 0) {
if(size < 0) {
FIXME("BSTR length = %d?\n", size);
} else {
ptr=TLB_Alloc(size);/* allocate temp buffer */