Sync to Wine-20050111:

Michael Stefaniuc <mstefani@redhat.de>
- Do not check for non NULL pointer before HeapFree'ing it. It's
  redundant.
Eric Pouech <pouech-eric@wanadoo.fr>
- Fixed some errors in function prototypes.
Robert Shearman <rob@codeweavers.com>
- Remove unnecessary WNDPROC casts.

svn path=/trunk/; revision=12988
This commit is contained in:
Gé van Geldorp 2005-01-12 20:12:53 +00:00
parent edc6b71a42
commit f387572e84
3 changed files with 7 additions and 8 deletions

View file

@ -98,9 +98,9 @@ static void ReadStyleSheet (RTF_Info *);
static void ReadInfoGroup (RTF_Info *);
static void ReadPictGroup (RTF_Info *);
static void ReadObjGroup (RTF_Info *);
static void LookupInit ();
static void LookupInit (void);
static void Lookup (RTF_Info *, char *);
static int Hash ();
static int Hash (char*);
static void CharSetInit (RTF_Info *);
static void ReadCharSetMaps (RTF_Info *);
@ -2451,7 +2451,7 @@ static RTFKey rtfKey[] =
* Initialize lookup table hash values. Only need to do this once.
*/
static void LookupInit()
static void LookupInit(void)
{
static int inited = 0;
RTFKey *rp;
@ -2546,8 +2546,7 @@ char *p;
void RTFFree(char *p)
{
if (p != (char *) NULL)
HeapFree(RICHED32_hHeap, 0, p);
HeapFree(RICHED32_hHeap, 0, p);
}

View file

@ -778,7 +778,7 @@ VOID RICHED32_Register(void)
ZeroMemory(&wndClass, sizeof(WNDCLASSA));
wndClass.style = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
wndClass.lpfnWndProc = (WNDPROC)RICHED32_WindowProc;
wndClass.lpfnWndProc = RICHED32_WindowProc;
wndClass.cbClsExtra = 0;
wndClass.cbWndExtra = RTFInfoOffset + sizeof(RTFControl_Info*);
wndClass.hCursor = LoadCursorA(0, (LPSTR)IDC_ARROW);

View file

@ -1,2 +1,2 @@
void WriterInit ();
int BeginFile ();
void WriterInit (RTF_Info *);
int BeginFile (RTF_Info *);