diff --git a/dlls/mshtml/protocol.c b/dlls/mshtml/protocol.c index 0f06896c49..8612e05bf1 100644 --- a/dlls/mshtml/protocol.c +++ b/dlls/mshtml/protocol.c @@ -608,11 +608,16 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl, TRACE("trying to find resource type %s, name %s\n", debugstr_w(res_type), debugstr_w(url_file)); src = FindResourceW(hdll, url_file, res_type); + /* Non-HTML resources accessed through the res:// protocol have resource type 2110: */ + if(!src) + src = FindResourceW(hdll, url_file, MAKEINTRESOURCEW(2110)); if(!src) { LPWSTR endpoint = NULL; DWORD file_id = wcstol(url_file, &endpoint, 10); if(endpoint == url_file+lstrlenW(url_file)) src = FindResourceW(hdll, MAKEINTRESOURCEW(file_id), res_type); + if(!src) + src = FindResourceW(hdll, MAKEINTRESOURCEW(file_id), MAKEINTRESOURCEW(2110)); if(!src) { WARN("Could not find resource\n"); diff --git a/dlls/mshtml/tests/image.gif b/dlls/mshtml/tests/image.gif new file mode 100644 index 0000000000000000000000000000000000000000..2f185027c30b7b2329572c5314bf362da1798e4d GIT binary patch literal 1144 zcmdUu*;88u9EE=gF%8Qgi|nX@GKQ^XRS=6nX&aUaQz$9SP=#U(2qv|pCA0!fE@Zt4 zxtAn`+=iGyN&rWPWpDry2$6~iw6aK1q1HMwJ_5x-1{>p_;WyvIIp_T_v(F{JeVGn) z*nR-n068R54w=j*lP>|h4^Rg10l-y&N`Q|5xB%Ay>H#jexitYGj!LCU0E*n*r&-KB=oysL)oG zLZwo*Vkm}TIF7eDP-AUsT&-3QE0x;28cjR?OepNowLg-}34$2bX!Lr0r-9IaN~~bm zx=J;w(;1D%t}c_=Y@R2GhXm2n)APN-@I8UH!k8+roM2j9c}A8h zI`35PpT1EA`qx-qH~Y0G@`5~54vQ3z2QJSb|9FkY-_OX3X8&}i*e#^H^O!7xlH#$Q zR`!+q>EAM+m$FLxtCBk~Qww@W;qhi?CU``~h9x%8NHaF^aS?GEhe)=+?}_q-UemJ& zFDI}p^zf_wZk|!HlTY)9jx+T=?}5U3#5^sexcZ;@%Vg=JlVaY=4k$~{aH72ujRmYe zFU25zz+8X+DOuu~8m@g&bc{&}cq3MtZbH7bqz&80;>x>iGM`xNN|*PgvcQ-;d05C5 z3yX&|9sZKf``Xx%R62U`MohBH$^oMF?PT