]> granicus.if.org Git - php/commitdiff
typo
authorDmitry Stogov <dmitry@php.net>
Mon, 19 Feb 2007 17:29:19 +0000 (17:29 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 19 Feb 2007 17:29:19 +0000 (17:29 +0000)
ext/com_dotnet/com_olechar.c

index eb3f02907cedf4c0544cc39dcce13bd2110af946..4e92cdd1af76719096837106e05179fc133ef339 100644 (file)
@@ -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 {