Changeset 27135 in webkit for trunk/JavaScriptCore


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):
Location:
trunk/JavaScriptCore
Files:
2 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
  • trunk/JavaScriptCore/ChangeLog

    r27134 r27135  
     12007-10-26  Kevin McCullough  <[email protected]>
     2
     3        Reviewed by Adam.
     4
     5        - Made JSStringCreateWithBSTR capable of handling null BSTRs.
     6
     7        * API/JSStringRefCOM.cpp:
     8        (JSStringCreateWithBSTR):
     9
    1102007-10-26  Sam Weinig  <[email protected]>
    211
Note: See TracChangeset for help on using the changeset viewer.