explorer: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-04 09:56:32 +01:00 committed by Alexandre Julliard
parent ed875d65e4
commit e299b5af34
5 changed files with 30 additions and 31 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = explorer.exe MODULE = explorer.exe
IMPORTS = rpcrt4 user32 gdi32 advapi32 IMPORTS = rpcrt4 user32 gdi32 advapi32
DELAYIMPORTS = comctl32 shell32 oleaut32 ole32 shlwapi DELAYIMPORTS = comctl32 shell32 oleaut32 ole32 shlwapi

View File

@ -223,7 +223,7 @@ static UINT_PTR handle_appbarmessage(DWORD msg, struct appbar_data_msg *abd)
case ABM_WINDOWPOSCHANGED: case ABM_WINDOWPOSCHANGED:
return TRUE; return TRUE;
default: default:
WINE_FIXME("SHAppBarMessage(%x) unimplemented\n", msg); WINE_FIXME("SHAppBarMessage(%lx) unimplemented\n", msg);
return FALSE; return FALSE;
} }
} }

View File

@ -84,7 +84,7 @@ static HRESULT load_typelib(void)
hres = LoadRegTypeLib(&LIBID_SHDocVw, 1, 0, LOCALE_SYSTEM_DEFAULT, &tl); hres = LoadRegTypeLib(&LIBID_SHDocVw, 1, 0, LOCALE_SYSTEM_DEFAULT, &tl);
if (FAILED(hres)) if (FAILED(hres))
{ {
ERR("LoadRegTypeLib failed: %08x\n", hres); ERR("LoadRegTypeLib failed: %08lx\n", hres);
return hres; return hres;
} }
@ -107,7 +107,7 @@ static HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo)
hres = ITypeLib_GetTypeInfoOfGuid(typelib, tid_ids[tid], &ti); hres = ITypeLib_GetTypeInfoOfGuid(typelib, tid_ids[tid], &ti);
if (FAILED(hres)) { if (FAILED(hres)) {
ERR("GetTypeInfoOfGuid(%s) failed: %08x\n", debugstr_guid(tid_ids[tid]), hres); ERR("GetTypeInfoOfGuid(%s) failed: %08lx\n", debugstr_guid(tid_ids[tid]), hres);
return hres; return hres;
} }
@ -467,7 +467,7 @@ static BOOL process_changes( const WCHAR *folder, char *buf )
break; break;
default: default:
WARN( "unexpected action %u\n", info->Action ); WARN( "unexpected action %lu\n", info->Action );
break; break;
} }
if (!info->NextEntryOffset) break; if (!info->NextEntryOffset) break;
@ -623,7 +623,7 @@ static WNDPROC desktop_orig_wndproc;
/* window procedure for the desktop window */ /* window procedure for the desktop window */
static LRESULT WINAPI desktop_wnd_proc( HWND hwnd, UINT message, WPARAM wp, LPARAM lp ) static LRESULT WINAPI desktop_wnd_proc( HWND hwnd, UINT message, WPARAM wp, LPARAM lp )
{ {
WINE_TRACE( "got msg %04x wp %lx lp %lx\n", message, wp, lp ); WINE_TRACE( "got msg %04x wp %Ix lp %Ix\n", message, wp, lp );
switch(message) switch(message)
{ {
@ -852,7 +852,7 @@ static HMODULE load_graphics_driver( const WCHAR *driver, const GUID *guid )
strcpy( error, "Make sure that your X server is running and that $DISPLAY is set correctly." ); strcpy( error, "Make sure that your X server is running and that $DISPLAY is set correctly." );
break; break;
default: default:
sprintf( error, "Unknown error (%u).", GetLastError() ); sprintf( error, "Unknown error (%lu).", GetLastError() );
break; break;
} }
name = next; name = next;
@ -897,7 +897,7 @@ static void initialize_display_settings(void)
continue; continue;
} }
WINE_TRACE( "Device %s current display mode %ux%u %uBits %uHz at %d,%d.\n", WINE_TRACE( "Device %s current display mode %lux%lu %luBits %luHz at %ld,%ld.\n",
wine_dbgstr_w( ddW.DeviceName ), dmW.dmPelsWidth, dmW.dmPelsHeight, wine_dbgstr_w( ddW.DeviceName ), dmW.dmPelsWidth, dmW.dmPelsHeight,
dmW.dmBitsPerPel, dmW.dmDisplayFrequency, dmW.u1.s2.dmPosition.x, dmW.dmBitsPerPel, dmW.dmDisplayFrequency, dmW.u1.s2.dmPosition.x,
dmW.u1.s2.dmPosition.y ); dmW.u1.s2.dmPosition.y );
@ -997,7 +997,7 @@ void manage_desktop( WCHAR *arg )
{ {
if (!(desktop = CreateDesktopW( name, NULL, NULL, 0, DESKTOP_ALL_ACCESS, NULL ))) if (!(desktop = CreateDesktopW( name, NULL, NULL, 0, DESKTOP_ALL_ACCESS, NULL )))
{ {
WINE_ERR( "failed to create desktop %s error %d\n", wine_dbgstr_w(name), GetLastError() ); WINE_ERR( "failed to create desktop %s error %ld\n", wine_dbgstr_w(name), GetLastError() );
ExitProcess( 1 ); ExitProcess( 1 );
} }
SetThreadDesktop( desktop ); SetThreadDesktop( desktop );
@ -1122,7 +1122,7 @@ static HRESULT WINAPI shellwindows_GetTypeInfoCount(IShellWindows *iface, UINT *
static HRESULT WINAPI shellwindows_GetTypeInfo(IShellWindows *iface, static HRESULT WINAPI shellwindows_GetTypeInfo(IShellWindows *iface,
UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
{ {
TRACE("%d %d %p\n", iTInfo, lcid, ppTInfo); TRACE("%d %ld %p\n", iTInfo, lcid, ppTInfo);
return get_typeinfo(IShellWindows_tid, ppTInfo); return get_typeinfo(IShellWindows_tid, ppTInfo);
} }
@ -1133,7 +1133,7 @@ static HRESULT WINAPI shellwindows_GetIDsOfNames(IShellWindows *iface,
ITypeInfo *typeinfo; ITypeInfo *typeinfo;
HRESULT hr; HRESULT hr;
TRACE("%s %p %d %d %p\n", debugstr_guid(riid), rgszNames, cNames, TRACE("%s %p %d %ld %p\n", debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId); lcid, rgDispId);
if (!rgszNames || cNames == 0 || !rgDispId) if (!rgszNames || cNames == 0 || !rgDispId)
@ -1157,7 +1157,7 @@ static HRESULT WINAPI shellwindows_Invoke(IShellWindows *iface,
ITypeInfo *typeinfo; ITypeInfo *typeinfo;
HRESULT hr; HRESULT hr;
TRACE("%d %s %d %08x %p %p %p %p\n", dispIdMember, debugstr_guid(riid), TRACE("%ld %s %ld %08x %p %p %p %p\n", dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IShellWindows_tid, &typeinfo); hr = get_typeinfo(IShellWindows_tid, &typeinfo);
@ -1196,7 +1196,7 @@ static HRESULT WINAPI shellwindows_Register(IShellWindows *iface,
struct shellwindows *sw = impl_from_IShellWindows(iface); struct shellwindows *sw = impl_from_IShellWindows(iface);
struct window *window; struct window *window;
TRACE("iface %p, disp %p, hwnd %#x, class %u, cookie %p.\n", iface, disp, hwnd, class, cookie); TRACE("iface %p, disp %p, hwnd %#lx, class %u, cookie %p.\n", iface, disp, hwnd, class, cookie);
if (!hwnd) if (!hwnd)
return E_POINTER; return E_POINTER;
@ -1225,7 +1225,7 @@ static HRESULT WINAPI shellwindows_Register(IShellWindows *iface,
static HRESULT WINAPI shellwindows_RegisterPending(IShellWindows *iface, static HRESULT WINAPI shellwindows_RegisterPending(IShellWindows *iface,
LONG threadid, VARIANT *loc, VARIANT *root, int class, LONG *cookie) LONG threadid, VARIANT *loc, VARIANT *root, int class, LONG *cookie)
{ {
FIXME("0x%x %s %s 0x%x %p\n", threadid, debugstr_variant(loc), debugstr_variant(root), FIXME("0x%lx %s %s 0x%x %p\n", threadid, debugstr_variant(loc), debugstr_variant(root),
class, cookie); class, cookie);
return E_NOTIMPL; return E_NOTIMPL;
} }
@ -1235,7 +1235,7 @@ static HRESULT WINAPI shellwindows_Revoke(IShellWindows *iface, LONG cookie)
struct shellwindows *sw = impl_from_IShellWindows(iface); struct shellwindows *sw = impl_from_IShellWindows(iface);
unsigned int i; unsigned int i;
TRACE("iface %p, cookie %u.\n", iface, cookie); TRACE("iface %p, cookie %lu.\n", iface, cookie);
EnterCriticalSection(&sw->cs); EnterCriticalSection(&sw->cs);
@ -1259,7 +1259,7 @@ static HRESULT WINAPI shellwindows_OnNavigate(IShellWindows *iface, LONG cookie,
struct shellwindows *sw = impl_from_IShellWindows(iface); struct shellwindows *sw = impl_from_IShellWindows(iface);
unsigned int i; unsigned int i;
TRACE("iface %p, cookie %u, location %s.\n", iface, cookie, debugstr_variant(location)); TRACE("iface %p, cookie %lu, location %s.\n", iface, cookie, debugstr_variant(location));
if (V_VT(location) != (VT_ARRAY | VT_UI1)) if (V_VT(location) != (VT_ARRAY | VT_UI1))
{ {
@ -1292,7 +1292,7 @@ static HRESULT WINAPI shellwindows_OnNavigate(IShellWindows *iface, LONG cookie,
static HRESULT WINAPI shellwindows_OnActivated(IShellWindows *iface, LONG cookie, VARIANT_BOOL active) static HRESULT WINAPI shellwindows_OnActivated(IShellWindows *iface, LONG cookie, VARIANT_BOOL active)
{ {
FIXME("0x%x 0x%x\n", cookie, active); FIXME("0x%lx 0x%x\n", cookie, active);
return E_NOTIMPL; return E_NOTIMPL;
} }
@ -1343,7 +1343,7 @@ static HRESULT WINAPI shellwindows_FindWindowSW(IShellWindows *iface, VARIANT *l
static HRESULT WINAPI shellwindows_OnCreated(IShellWindows *iface, LONG cookie, IUnknown *punk) static HRESULT WINAPI shellwindows_OnCreated(IShellWindows *iface, LONG cookie, IUnknown *punk)
{ {
FIXME("0x%x %p\n", cookie, punk); FIXME("0x%lx %p\n", cookie, punk);
return E_NOTIMPL; return E_NOTIMPL;
} }
@ -1497,7 +1497,7 @@ static HRESULT WINAPI webbrowser_GetTypeInfo(IWebBrowser2 *iface, UINT iTInfo, L
LPTYPEINFO *ppTInfo) LPTYPEINFO *ppTInfo)
{ {
struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface); struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface);
TRACE("(%p)->(%d %d %p)\n", This, iTInfo, lcid, ppTInfo); TRACE("(%p)->(%d %ld %p)\n", This, iTInfo, lcid, ppTInfo);
return get_typeinfo(IWebBrowser2_tid, ppTInfo); return get_typeinfo(IWebBrowser2_tid, ppTInfo);
} }
@ -1509,7 +1509,7 @@ static HRESULT WINAPI webbrowser_GetIDsOfNames(IWebBrowser2 *iface, REFIID riid,
ITypeInfo *typeinfo; ITypeInfo *typeinfo;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s %p %d %d %p)\n", This, debugstr_guid(riid), rgszNames, cNames, TRACE("(%p)->(%s %p %d %ld %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId); lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId) if(!rgszNames || cNames == 0 || !rgDispId)
@ -1534,7 +1534,7 @@ static HRESULT WINAPI webbrowser_Invoke(IWebBrowser2 *iface, DISPID dispIdMember
ITypeInfo *typeinfo; ITypeInfo *typeinfo;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d %s %d %08x %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid), TRACE("(%p)->(%ld %s %ld %08x %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IWebBrowser2_tid, &typeinfo); hr = get_typeinfo(IWebBrowser2_tid, &typeinfo);
@ -1666,7 +1666,7 @@ static HRESULT WINAPI webbrowser_get_Left(IWebBrowser2 *iface, LONG *pl)
static HRESULT WINAPI webbrowser_put_Left(IWebBrowser2 *iface, LONG Left) static HRESULT WINAPI webbrowser_put_Left(IWebBrowser2 *iface, LONG Left)
{ {
struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface); struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface);
FIXME("(%p)->(%d)\n", This, Left); FIXME("(%p)->(%ld)\n", This, Left);
return E_NOTIMPL; return E_NOTIMPL;
} }
@ -1680,7 +1680,7 @@ static HRESULT WINAPI webbrowser_get_Top(IWebBrowser2 *iface, LONG *pl)
static HRESULT WINAPI webbrowser_put_Top(IWebBrowser2 *iface, LONG Top) static HRESULT WINAPI webbrowser_put_Top(IWebBrowser2 *iface, LONG Top)
{ {
struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface); struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface);
FIXME("(%p)->(%d)\n", This, Top); FIXME("(%p)->(%ld)\n", This, Top);
return E_NOTIMPL; return E_NOTIMPL;
} }
@ -1694,7 +1694,7 @@ static HRESULT WINAPI webbrowser_get_Width(IWebBrowser2 *iface, LONG *pl)
static HRESULT WINAPI webbrowser_put_Width(IWebBrowser2 *iface, LONG Width) static HRESULT WINAPI webbrowser_put_Width(IWebBrowser2 *iface, LONG Width)
{ {
struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface); struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface);
FIXME("(%p)->(%d)\n", This, Width); FIXME("(%p)->(%ld)\n", This, Width);
return E_NOTIMPL; return E_NOTIMPL;
} }
@ -1708,7 +1708,7 @@ static HRESULT WINAPI webbrowser_get_Height(IWebBrowser2 *iface, LONG *pl)
static HRESULT WINAPI webbrowser_put_Height(IWebBrowser2 *iface, LONG Height) static HRESULT WINAPI webbrowser_put_Height(IWebBrowser2 *iface, LONG Height)
{ {
struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface); struct shellbrowserwindow *This = impl_from_IWebBrowser2(iface);
FIXME("(%p)->(%d)\n", This, Height); FIXME("(%p)->(%ld)\n", This, Height);
return E_NOTIMPL; return E_NOTIMPL;
} }
@ -2223,7 +2223,7 @@ static HRESULT WINAPI shellbrowser_BrowseObject(IShellBrowser *iface, LPCITEMIDL
static HRESULT WINAPI shellbrowser_GetViewStateStream(IShellBrowser *iface, DWORD mode, IStream **stream) static HRESULT WINAPI shellbrowser_GetViewStateStream(IShellBrowser *iface, DWORD mode, IStream **stream)
{ {
FIXME("0x%x %p\n", mode, stream); FIXME("0x%lx %p\n", mode, stream);
return E_NOTIMPL; return E_NOTIMPL;
} }
@ -2236,7 +2236,7 @@ static HRESULT WINAPI shellbrowser_GetControlWindow(IShellBrowser *iface, UINT i
static HRESULT WINAPI shellbrowser_SendControlMsg(IShellBrowser *iface, UINT id, UINT uMsg, static HRESULT WINAPI shellbrowser_SendControlMsg(IShellBrowser *iface, UINT id, UINT uMsg,
WPARAM wParam, LPARAM lParam, LRESULT *pret) WPARAM wParam, LPARAM lParam, LRESULT *pret)
{ {
FIXME("%d %d %lx %lx %p\n", id, uMsg, wParam, lParam, pret); FIXME("%d %d %Ix %Ix %p\n", id, uMsg, wParam, lParam, pret);
return E_NOTIMPL; return E_NOTIMPL;
} }
@ -2314,5 +2314,5 @@ static void shellwindows_init(void)
&shellwindows_classfactory.classreg); &shellwindows_classfactory.classreg);
if (FAILED(hr)) if (FAILED(hr))
WARN("Failed to register ShellWindows object: %08x\n", hr); WARN("Failed to register ShellWindows object: %08lx\n", hr);
} }

View File

@ -421,7 +421,7 @@ static void make_explorer_window(parameters_struct *params)
V_VT(&empty_var) = VT_EMPTY; V_VT(&empty_var) = VT_EMPTY;
if (IShellWindows_FindWindowSW(sw, &var, &empty_var, SWC_EXPLORER, &hwnd, 0, &dispatch) == S_OK) if (IShellWindows_FindWindowSW(sw, &var, &empty_var, SWC_EXPLORER, &hwnd, 0, &dispatch) == S_OK)
{ {
TRACE("Found window %#x already browsing path %s.\n", hwnd, debugstr_w(path)); TRACE("Found window %#lx already browsing path %s.\n", hwnd, debugstr_w(path));
SetForegroundWindow((HWND)(LONG_PTR)hwnd); SetForegroundWindow((HWND)(LONG_PTR)hwnd);
IShellWindows_Release(sw); IShellWindows_Release(sw);
return; return;
@ -665,7 +665,7 @@ static LRESULT CALLBACK explorer_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, L
= (explorer_info*)GetWindowLongPtrW(hwnd,EXPLORER_INFO_INDEX); = (explorer_info*)GetWindowLongPtrW(hwnd,EXPLORER_INFO_INDEX);
IExplorerBrowser *browser = NULL; IExplorerBrowser *browser = NULL;
WINE_TRACE("(hwnd=%p,uMsg=%u,wParam=%lx,lParam=%lx)\n",hwnd,uMsg,wParam,lParam); WINE_TRACE("(hwnd=%p,uMsg=%u,wParam=%Ix,lParam=%Ix)\n",hwnd,uMsg,wParam,lParam);
if(info) if(info)
browser = info->browser; browser = info->browser;
switch(uMsg) switch(uMsg)

View File

@ -594,7 +594,7 @@ static BOOL handle_incoming(HWND hwndSource, COPYDATASTRUCT *cds)
} }
break; break;
default: default:
WINE_FIXME("unhandled tray message: %ld\n", cds->dwData); WINE_FIXME("unhandled tray message: %Id\n", cds->dwData);
break; break;
} }