diff options
Diffstat (limited to 'Source/WebCore/platform/win/BString.cpp')
-rw-r--r-- | Source/WebCore/platform/win/BString.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/WebCore/platform/win/BString.cpp b/Source/WebCore/platform/win/BString.cpp index 4d6d11e..6622f96 100644 --- a/Source/WebCore/platform/win/BString.cpp +++ b/Source/WebCore/platform/win/BString.cpp @@ -28,9 +28,8 @@ #include "KURL.h" #include "PlatformString.h" -#include <wtf/text/AtomicString.h> -#include <tchar.h> #include <windows.h> +#include <wtf/text/AtomicString.h> #if PLATFORM(CF) #include <CoreFoundation/CoreFoundation.h> @@ -102,7 +101,7 @@ BString::BString(CFStringRef cfstr) const UniChar* uniChars = CFStringGetCharactersPtr(cfstr); if (uniChars) { - m_bstr = SysAllocStringLen((LPCTSTR)uniChars, CFStringGetLength(cfstr)); + m_bstr = SysAllocStringLen((LPCWSTR)uniChars, CFStringGetLength(cfstr)); return; } @@ -158,7 +157,7 @@ bool operator ==(const BString& a, const BString& b) return true; if (!(BSTR)a || !(BSTR)b) return false; - return !_tcscmp((BSTR)a, (BSTR)b); + return !wcscmp((BSTR)a, (BSTR)b); } bool operator !=(const BString& a, const BString& b) @@ -174,7 +173,7 @@ bool operator ==(const BString& a, BSTR b) return true; if (!(BSTR)a || !b) return false; - return !_tcscmp((BSTR)a, b); + return !wcscmp((BSTR)a, b); } bool operator !=(const BString& a, BSTR b) @@ -190,7 +189,7 @@ bool operator ==(BSTR a, const BString& b) return true; if (!a || !(BSTR)b) return false; - return !_tcscmp(a, (BSTR)b); + return !wcscmp(a, (BSTR)b); } bool operator !=(BSTR a, const BString& b) |