Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / content / shell / app / shell_main.cc
index 4a04d8d..338570f 100644 (file)
 
 #if defined(OS_WIN)
 
+#if !defined(ADDRESS_SANITIZER)
 int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
+#else
+// The AddressSanitizer build should be a console program as it prints out stuff
+// on stderr.
+int main() {
+  HINSTANCE instance = GetModuleHandle(NULL);
+#endif
   sandbox::SandboxInterfaceInfo sandbox_info = {0};
   content::InitializeSandboxInfo(&sandbox_info);
   content::ShellMainDelegate delegate;