From 92940e0c4f1b78e9489ab12e6d6b6e8d426e4ab6 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Mon, 22 Mar 2004 22:57:51 +0000 Subject: [PATCH] BSTR of length 0 is allowed. --- dlls/oleaut32/typelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 167cbbb1bf..d8de067e10 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -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 */