mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
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:
parent
edc6b71a42
commit
f387572e84
3 changed files with 7 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
void WriterInit ();
|
||||
int BeginFile ();
|
||||
void WriterInit (RTF_Info *);
|
||||
int BeginFile (RTF_Info *);
|
||||
|
|
Loading…
Reference in a new issue