From: Vincent Povirk Subject: Re: [=PATCH v5 2/2] gdiplus: In GdipPrivateAddMemoryFont allow loading fonts with long names Message-Id: Date: Mon, 20 Nov 2017 13:35:55 -0600 In-Reply-To: <20171119194426.9003-2-dark.shadow4@web.de> References: <20171119194426.9003-1-dark.shadow4@web.de> <20171119194426.9003-2-dark.shadow4@web.de> Signed-off-by: Vincent Povirk + 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.