atl: Remove two superfluous casts.

This commit is contained in:
Michael Stefaniuc 2008-12-05 07:50:43 +01:00 committed by Alexandre Julliard
parent f4c2f2b0c4
commit fa1d049847
2 changed files with 2 additions and 2 deletions

View File

@ -1244,7 +1244,7 @@ HWND WINAPI AtlAxCreateDialogW(HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPRO
hgl = LoadResource (hInst, hrsrc);
if ( !hgl )
return NULL;
ptr = (LPCDLGTEMPLATEW)LockResource ( hgl );
ptr = LockResource ( hgl );
if (!ptr)
{
FreeResource( hgl );

View File

@ -439,7 +439,7 @@ static HRESULT resource_register(Registrar *This, LPCOLESTR resFileName,
if(hins) {
src = FindResourceW(hins, szID, szType);
if(src) {
regstra = (LPSTR)LoadResource(hins, src);
regstra = LoadResource(hins, src);
reslen = SizeofResource(hins, src);
if(regstra) {
len = MultiByteToWideChar(CP_ACP, 0, regstra, reslen, NULL, 0)+1;