Changeset 27135 in webkit for trunk/JavaScriptCore/API


Ignore:
Timestamp:
Oct 26, 2007, 6:37:04 PM (18 years ago)
Author:
kmccullo
Message:

Reviewed by Adam.

  • Made JSStringCreateWithBSTR capable of handling null BSTRs.
  • API/JSStringRefCOM.cpp: (JSStringCreateWithBSTR):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSStringRefCOM.cpp

    r27123 r27135  
    3535JSStringRef JSStringCreateWithBSTR(BSTR string)
    3636{
    37     return JSStringCreateWithCharacters(string, SysStringLen(string));
     37    return JSStringCreateWithCharacters(string ? string : L"", string ? SysStringLen(string) : 0);
    3838}
    3939
Note: See TracChangeset for help on using the changeset viewer.