Fixed compiler warnings.

This commit is contained in:
Andreas Mohr 1999-12-12 00:47:51 +00:00 committed by Alexandre Julliard
parent ed0da3f66c
commit 7fb732e597
6 changed files with 8 additions and 7 deletions

View File

@ -503,7 +503,7 @@ StartServiceA( SC_HANDLE hService, DWORD dwNumServiceArgs,
for(i=0; i<dwNumServiceArgs; i++)
lpwstr[i]=HEAP_strdupAtoW(GetProcessHeap(), 0, lpServiceArgVectors[i]);
StartServiceW(hService, dwNumServiceArgs, lpwstr);
StartServiceW(hService, dwNumServiceArgs, (LPCWSTR *)lpwstr);
if(dwNumServiceArgs)
{
@ -598,7 +598,7 @@ StartServiceW( SC_HANDLE hService, DWORD dwNumServiceArgs,
return FALSE;
start_dwNumServiceArgs = dwNumServiceArgs;
start_lpServiceArgVectors = lpServiceArgVectors;
start_lpServiceArgVectors = (LPWSTR *)lpServiceArgVectors;
ZeroMemory(&startupinfo,sizeof(STARTUPINFOA));
startupinfo.cb = sizeof(STARTUPINFOA);

View File

@ -127,7 +127,7 @@ static void DATETIME_Refresh (HWND hwnd, HDC hdc)
SYSTEMTIME date = infoPtr->date;
SIZE size;
BOOL prssed=FALSE;
COLORREF oldBk;
COLORREF oldBk = 0;

View File

@ -814,7 +814,7 @@ static void TAB_DrawItem(
HPEN holdPen;
INT oldBkMode;
INT cx,cy;
BOOL deleteBrush;
BOOL deleteBrush = TRUE;
if (lStyle & TCS_BUTTONS)
{

View File

@ -1259,7 +1259,6 @@ static HRESULT WINAPI DirectPlay3AImpl_InitializeConnection
HMODULE hServiceProvider;
typedef DWORD (WINAPI *SP_SPInit)(LPVOID lpCompoundAddress, ...); /* FIXME: How many arguments? */
SP_SPInit SPInit;
DWORD dwReturnValue = 0;
ICOM_THIS(IDirectPlay3Impl,iface);

View File

@ -30,9 +30,9 @@ extern BOOL TTYDRV_DC_BITMAP_DeleteObject(HBITMAP hbitmap, BITMAPOBJ *bitmap);
HGDIOBJ TTYDRV_DC_SelectObject(DC *dc, HGDIOBJ handle)
{
GDIOBJHDR *ptr = GDI_GetObjPtr(handle, MAGIC_DONTCARE);
HGDIOBJ result = NULL;
HGDIOBJ result = 0;
if(!ptr) return NULL;
if(!ptr) return 0;
switch(ptr->wMagic)
{

View File

@ -218,11 +218,13 @@ void PROCESS_CallUserSignalProc( UINT uCode, DWORD dwThreadId, HMODULE hModule )
/* Call USER signal proc */
if ( Callout.UserSignalProc )
{
if ( uCode == USIG_THREAD_INIT || uCode == USIG_THREAD_EXIT )
Callout.UserSignalProc( uCode, dwThreadId, dwFlags, hModule );
else
Callout.UserSignalProc( uCode, GetCurrentProcessId(), dwFlags, hModule );
}
}
/***********************************************************************
* PROCESS_CreateEnvDB