X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..3b1de9c2eeedf27401d897a609baf15d8ff5914e:/src/msw/dibutils.cpp diff --git a/src/msw/dibutils.cpp b/src/msw/dibutils.cpp index 30dca59100..b337129663 100644 --- a/src/msw/dibutils.cpp +++ b/src/msw/dibutils.cpp @@ -173,9 +173,13 @@ PDIB DibOpenFile(LPSTR szFile) HRSRC h; // TODO: Unicode version +#ifdef __WIN16__ + h = FindResource(GetCurrentInstance(), szFile, RT_BITMAP); +#else h = FindResourceA(GetCurrentInstance(), szFile, RT_BITMAP); +#endif -#if defined(WIN32) || defined(_WIN32) +#if defined(__WIN32__) //!!! can we call GlobalFree() on this? is it the right format. //!!! can we write to this resource? if (h)