Module: wine Branch: master Commit: b22dade1d634c9a3843780af9755617fa6409430 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b22dade1d634c9a3843780af97...
Author: Marcus Meissner marcus@jet.franken.de Date: Sun Jun 9 20:44:19 2013 +0200
oleaut32: Fixed incorrect pointer deref (Coverity).
---
dlls/oleaut32/typelib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index ad0b4ae..c2c3a63 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -3506,7 +3506,7 @@ static WORD SLTG_ReadString(const char *ptr, const TLBString **pStr, ITypeLibImp
len = MultiByteToWideChar(CP_ACP, 0, ptr + 2, bytelen, NULL, 0); tmp_str = SysAllocStringLen(NULL, len); - if (*tmp_str) { + if (tmp_str) { MultiByteToWideChar(CP_ACP, 0, ptr + 2, bytelen, tmp_str, len); *pStr = TLB_append_str(&lib->string_list, tmp_str); SysFreeString(tmp_str);