summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/win/WebPreferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/win/WebPreferences.cpp')
-rw-r--r--Source/WebKit/win/WebPreferences.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebKit/win/WebPreferences.cpp b/Source/WebKit/win/WebPreferences.cpp
index 01cab2b..a4869b6 100644
--- a/Source/WebKit/win/WebPreferences.cpp
+++ b/Source/WebKit/win/WebPreferences.cpp
@@ -40,7 +40,7 @@
#include <WebCore/PlatformString.h>
#include <limits>
#include <shlobj.h>
-#include <tchar.h>
+#include <wchar.h>
#include <wtf/HashMap.h>
#include <wtf/OwnArrayPtr.h>
#include <wtf/text/CString.h>
@@ -340,12 +340,12 @@ LONGLONG WebPreferences::longlongValueForKey(CFStringRef key)
void WebPreferences::setStringValue(CFStringRef key, LPCTSTR value)
{
BSTR val = stringValueForKey(key);
- if (val && !_tcscmp(val, value))
+ if (val && !wcscmp(val, value))
return;
SysFreeString(val);
RetainPtr<CFStringRef> valueRef(AdoptCF,
- CFStringCreateWithCharactersNoCopy(0, (UniChar*)_wcsdup(value), (CFIndex)_tcslen(value), kCFAllocatorMalloc));
+ CFStringCreateWithCharactersNoCopy(0, (UniChar*)_wcsdup(value), (CFIndex)wcslen(value), kCFAllocatorMalloc));
setValueForKey(key, valueRef.get());
postPreferencesChangesNotification();