Commit fa1d0498 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

atl: Remove two superfluous casts.

parent f4c2f2b0
...@@ -1244,7 +1244,7 @@ HWND WINAPI AtlAxCreateDialogW(HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPRO ...@@ -1244,7 +1244,7 @@ HWND WINAPI AtlAxCreateDialogW(HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPRO
hgl = LoadResource (hInst, hrsrc); hgl = LoadResource (hInst, hrsrc);
if ( !hgl ) if ( !hgl )
return NULL; return NULL;
ptr = (LPCDLGTEMPLATEW)LockResource ( hgl ); ptr = LockResource ( hgl );
if (!ptr) if (!ptr)
{ {
FreeResource( hgl ); FreeResource( hgl );
......
...@@ -439,7 +439,7 @@ static HRESULT resource_register(Registrar *This, LPCOLESTR resFileName, ...@@ -439,7 +439,7 @@ static HRESULT resource_register(Registrar *This, LPCOLESTR resFileName,
if(hins) { if(hins) {
src = FindResourceW(hins, szID, szType); src = FindResourceW(hins, szID, szType);
if(src) { if(src) {
regstra = (LPSTR)LoadResource(hins, src); regstra = LoadResource(hins, src);
reslen = SizeofResource(hins, src); reslen = SizeofResource(hins, src);
if(regstra) { if(regstra) {
len = MultiByteToWideChar(CP_ACP, 0, regstra, reslen, NULL, 0)+1; len = MultiByteToWideChar(CP_ACP, 0, regstra, reslen, NULL, 0)+1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment