From 2d652bb758049faa979d2030a7b1c1a8584cd470 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 30 Jun 2005 21:01:03 +0000 Subject: [PATCH] Use proper symbols instead of magic number 23 for HTML resource type. --- dlls/mshtml/protocol.c | 2 +- dlls/mshtml/rsrc.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/protocol.c b/dlls/mshtml/protocol.c index 44a73b67dcf..0e855df0d57 100644 --- a/dlls/mshtml/protocol.c +++ b/dlls/mshtml/protocol.c @@ -463,7 +463,7 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl, return HRESULT_FROM_WIN32(GetLastError()); } - src = FindResourceW(hdll, ++url_file, (LPCWSTR)23); + src = FindResourceW(hdll, ++url_file, (LPCWSTR)RT_HTML); if(!src) { WARN("Could not find resource: %s\n", debugstr_w(url_file)); IInternetProtocolSink_ReportResult(pOIProtSink, HRESULT_FROM_WIN32(GetLastError()), 0, NULL); diff --git a/dlls/mshtml/rsrc.rc b/dlls/mshtml/rsrc.rc index 8f671e6f08e..c34f24657ab 100644 --- a/dlls/mshtml/rsrc.rc +++ b/dlls/mshtml/rsrc.rc @@ -18,4 +18,4 @@ REGINST REGINST mshtml.inf -blank.htm 23 "blank.htm" +blank.htm HTML "blank.htm"