mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Fix bug when length was queried before the string was converted.
This commit is contained in:
parent
762effcf60
commit
139fd6a8e4
1 changed files with 6 additions and 1 deletions
|
@ -116,7 +116,12 @@ class TWideString {
|
|||
return ret;
|
||||
}
|
||||
|
||||
int ansi_len(void) { return m_ansi_strlen; }
|
||||
int ansi_len(void) {
|
||||
/* force conversion if it has not already occurred */
|
||||
if (m_ansi == NULL)
|
||||
ansi_string();
|
||||
return m_ansi_strlen;
|
||||
}
|
||||
|
||||
static BSTR bstr_from_ansi(char *ansi) {
|
||||
OLECHAR *ole = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue