summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/wince/MIMETypeRegistryWinCE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/wince/MIMETypeRegistryWinCE.cpp')
-rw-r--r--Source/WebCore/platform/wince/MIMETypeRegistryWinCE.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/wince/MIMETypeRegistryWinCE.cpp b/Source/WebCore/platform/wince/MIMETypeRegistryWinCE.cpp
index 7534b91..8a7ac8f 100644
--- a/Source/WebCore/platform/wince/MIMETypeRegistryWinCE.cpp
+++ b/Source/WebCore/platform/wince/MIMETypeRegistryWinCE.cpp
@@ -27,7 +27,9 @@
#include "config.h"
#include "MIMETypeRegistry.h"
+#include <wtf/Assertions.h>
#include <wtf/HashMap.h>
+#include <wtf/MainThread.h>
#include <windows.h>
#include <winreg.h>
@@ -119,6 +121,8 @@ String MIMETypeRegistry::getPreferredExtensionForMIMEType(const String& type)
String MIMETypeRegistry::getMIMETypeForExtension(const String &ext)
{
+ ASSERT(isMainThread());
+
if (ext.isEmpty())
return String();