Hello.
Kevin Koltzau wrote:
Changelog Remove 'cast to pointer from integer of different size' warnings in 64bit
Index: dlls/atl/registrar.c
RCS file: /home/wine/wine/dlls/atl/registrar.c,v retrieving revision 1.11 diff -u -d -r1.11 registrar.c --- dlls/atl/registrar.c 10 Aug 2005 09:53:47 -0000 1.11 +++ dlls/atl/registrar.c 21 Aug 2005 02:42:53 -0000 @@ -634,7 +634,7 @@ { Registrar *This = (Registrar*)iface; TRACE("(%p)->(%s %d %s)\n", iface, debugstr_w(resFileName), nID, debugstr_w(szType));
- return resource_register(This, resFileName, (LPOLESTR)nID, szType, TRUE);
- return resource_register(This, resFileName, (LPOLESTR)(UINT_PTR)nID, szType, TRUE);
}
static HRESULT WINAPI Registrar_ResourceUnregister(IRegistrar* iface, LPCOLESTR resFileName, @@ -642,7 +642,7 @@ { Registrar *This = (Registrar*)iface; TRACE("(%p)->(%s %d %s)\n", This, debugstr_w(resFileName), nID, debugstr_w(szType));
- return resource_register(This, resFileName, (LPOLESTR)nID, szType, FALSE);
- return resource_register(This, resFileName, (LPOLESTR)(UINT_PTR)nID, szType, FALSE);
}
static const IRegistrarVtbl RegistrarVtbl = {
It doesn't make a big difference, but it would be better to use MAKEINTRESOURCEW macro here.
Jacek