From 955d3e73e85c719aa06eefc3a0c81256522211a5 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 19 Feb 2007 17:29:19 +0000 Subject: [PATCH] typo --- ext/com_dotnet/com_olechar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/com_dotnet/com_olechar.c b/ext/com_dotnet/com_olechar.c index eb3f02907c..4e92cdd1af 100644 --- a/ext/com_dotnet/com_olechar.c +++ b/ext/com_dotnet/com_olechar.c @@ -44,7 +44,7 @@ PHPAPI OLECHAR *php_com_string_to_olestring(char *string, uint string_len, int c string_len++; } - if (strlen > 0) { + if (string_len > 0) { olestring = (OLECHAR*)safe_emalloc(sizeof(OLECHAR), string_len, 0); ok = MultiByteToWideChar(codepage, flags, string, string_len, olestring, string_len); } else { -- 2.50.1