Commit 7ed94416 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

A few function prototype fixes.

parent 8220bc9d
......@@ -77,9 +77,8 @@ static DWORD SH_get_instance(REFCLSID clsid,LPSTR dllname,LPVOID unknownouter,RE
}
hres = (*dllgetclassob)(clsid,(REFIID)&IID_IClassFactory,&classfac);
if (hres<0 || (hres>=0x80000000))
{ return hres;
}
if ((hres<0) || (hres>=0x80000000))
return hres;
if (!classfac)
{ FIXME(shell,"no classfactory, but hres is 0x%ld!\n",hres);
return E_FAIL;
......@@ -137,7 +136,7 @@ LRESULT WINAPI SHCoCreateInstance(LPSTR aclsid,CLSID *clsid,LPUNKNOWN unknownout
TRACE(shell, "Threading model is %s\n",tmodel);
hres=SH_get_instance(clsid,path,unknownouter,refiid,inst);
if (hres<0)
if (hres<0 || (hres>0x80000000))
{ hres=SH_get_instance(clsid,"shell32.dll",unknownouter,refiid,inst);
}
RegCloseKey(inprockey);
......
......@@ -10,7 +10,7 @@
#include "wintypes.h"
#include "winnt.h"
extern int (*IF1632_CallLargeStack)( int (*func)(), void *arg );
extern int (*IF1632_CallLargeStack)( int (*func)(void), void *arg );
#define CALL_LARGE_STACK(func,arg) \
(IF1632_CallLargeStack ? \
......
......@@ -103,9 +103,9 @@ struct IMalloc16 {
/* private prototypes for the constructors */
#ifdef __WINE__
LPUNKNOWN IUnknown_Constructor();
LPMALLOC16 IMalloc16_Constructor();
LPMALLOC32 IMalloc32_Constructor();
LPUNKNOWN IUnknown_Constructor(void);
LPMALLOC16 IMalloc16_Constructor(void);
LPMALLOC32 IMalloc32_Constructor(void);
#endif
HRESULT WINAPI CoGetMalloc32(DWORD, LPMALLOC32*);
......
......@@ -15,9 +15,9 @@
/****************************************************************************
* shell 16
*/
extern void SHELL_LoadRegistry();
extern void SHELL_SaveRegistry();
extern void SHELL_Init();
extern void SHELL_LoadRegistry(void);
extern void SHELL_SaveRegistry(void);
extern void SHELL_Init(void);
/* global functions used from shell32 */
extern HINSTANCE32 SHELL_FindExecutable(LPCSTR,LPCSTR ,LPSTR);
......
......@@ -88,7 +88,7 @@
KEY_CREATE_LINK \
)
void SHELL_Init();
void SHELL_SaveRegistry();
void SHELL_LoadRegistry();
void SHELL_Init(void);
void SHELL_SaveRegistry(void);
void SHELL_LoadRegistry(void);
#endif /* __WINE_WINREG_H */
......@@ -612,5 +612,5 @@ type win32
608 stdcall GetMonitorInfoW(long ptr) GetMonitorInfo32W
609 stdcall MonitorFromWindow(long long) MonitorFromPoint
610 stdcall MonitorFromRect(ptr long) MonitorFromRect
611 stdcall MonitorFromPoint(ptr long) MonitorFromPoint
611 stdcall MonitorFromPoint(long long long) MonitorFromPoint
612 stdcall EnumDisplayMonitors(long ptr ptr long) EnumDisplayMonitors
......@@ -46,7 +46,7 @@ static char* errorEmpty = "No fonts found.\n";
/* info */
void usage()
void usage(void)
{
printf("Usage: fnt2bdf [-t] [-c charset] [-o basename] [input file]\n");
printf(" -c charset\tcharset name for OEM_CHARSET fonts\n");
......
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