Signed-off-by: Vincent Povirk <vincent at codeweavers.com> + res = FindResourceA(GetModuleHandleA(NULL), (LPCSTR)MAKEINTRESOURCE(resource), (LPCSTR)RT_RCDATA); I'm not sure it matters, but you can use MAKEINTRESOURCEA to avoid the cast.