--- a/xulrunner/app/Makefile.in
+++ b/xulrunner/app/Makefile.in
@@ -131,17 +131,17 @@ DEFINES += -DMOZ_WINCONSOLE=$(MOZ_WINCON
NSDISTMODE = copy
include $(topsrcdir)/config/config.mk
ifdef _MSC_VER
# Always enter a Windows program through wmain, whether or not we're
# a console application.
-WIN32_EXE_LDFLAGS += -ENTRY:mainWCRTStartup
+WIN32_EXE_LDFLAGS += -ENTRY:wmainCRTStartup
endif
ifdef NS_TRACE_MALLOC
EXTRA_DSO_LIBS += tracemalloc
endif
ifeq ($(OS_ARCH),WINNT)
OS_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool)
--- a/xulrunner/stub/Makefile.in
+++ b/xulrunner/stub/Makefile.in
@@ -89,16 +89,16 @@ MOZ_WINCONSOLE = 1
else
MOZ_WINCONSOLE = 0
endif
endif
include $(topsrcdir)/config/config.mk
ifdef _MSC_VER
-WIN32_EXE_LDFLAGS += -ENTRY:mainWCRTStartup
+WIN32_EXE_LDFLAGS += -ENTRY:wmainCRTStartup
endif
include $(topsrcdir)/config/rules.mk
ifeq ($(OS_ARCH),WINNT)
OS_LIBS += $(call EXPAND_LIBNAME,shell32)
endif