diff --git a/reactos/lib/richedit/reader.c b/reactos/lib/richedit/reader.c index 2cb6d36da20..aab017caa4e 100644 --- a/reactos/lib/richedit/reader.c +++ b/reactos/lib/richedit/reader.c @@ -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); } diff --git a/reactos/lib/richedit/richedit.c b/reactos/lib/richedit/richedit.c index c47cd4d7e9e..648c7be9257 100644 --- a/reactos/lib/richedit/richedit.c +++ b/reactos/lib/richedit/richedit.c @@ -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); diff --git a/reactos/lib/richedit/rtf2text.h b/reactos/lib/richedit/rtf2text.h index 8dec24c2316..a0df850a78a 100644 --- a/reactos/lib/richedit/rtf2text.h +++ b/reactos/lib/richedit/rtf2text.h @@ -1,2 +1,2 @@ -void WriterInit (); -int BeginFile (); +void WriterInit (RTF_Info *); +int BeginFile (RTF_Info *);