Commit 7fb732e5 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Fixed compiler warnings.

parent ed0da3f6
...@@ -503,7 +503,7 @@ StartServiceA( SC_HANDLE hService, DWORD dwNumServiceArgs, ...@@ -503,7 +503,7 @@ StartServiceA( SC_HANDLE hService, DWORD dwNumServiceArgs,
for(i=0; i<dwNumServiceArgs; i++) for(i=0; i<dwNumServiceArgs; i++)
lpwstr[i]=HEAP_strdupAtoW(GetProcessHeap(), 0, lpServiceArgVectors[i]); lpwstr[i]=HEAP_strdupAtoW(GetProcessHeap(), 0, lpServiceArgVectors[i]);
StartServiceW(hService, dwNumServiceArgs, lpwstr); StartServiceW(hService, dwNumServiceArgs, (LPCWSTR *)lpwstr);
if(dwNumServiceArgs) if(dwNumServiceArgs)
{ {
...@@ -598,7 +598,7 @@ StartServiceW( SC_HANDLE hService, DWORD dwNumServiceArgs, ...@@ -598,7 +598,7 @@ StartServiceW( SC_HANDLE hService, DWORD dwNumServiceArgs,
return FALSE; return FALSE;
start_dwNumServiceArgs = dwNumServiceArgs; start_dwNumServiceArgs = dwNumServiceArgs;
start_lpServiceArgVectors = lpServiceArgVectors; start_lpServiceArgVectors = (LPWSTR *)lpServiceArgVectors;
ZeroMemory(&startupinfo,sizeof(STARTUPINFOA)); ZeroMemory(&startupinfo,sizeof(STARTUPINFOA));
startupinfo.cb = sizeof(STARTUPINFOA); startupinfo.cb = sizeof(STARTUPINFOA);
......
...@@ -127,7 +127,7 @@ static void DATETIME_Refresh (HWND hwnd, HDC hdc) ...@@ -127,7 +127,7 @@ static void DATETIME_Refresh (HWND hwnd, HDC hdc)
SYSTEMTIME date = infoPtr->date; SYSTEMTIME date = infoPtr->date;
SIZE size; SIZE size;
BOOL prssed=FALSE; BOOL prssed=FALSE;
COLORREF oldBk; COLORREF oldBk = 0;
......
...@@ -814,7 +814,7 @@ static void TAB_DrawItem( ...@@ -814,7 +814,7 @@ static void TAB_DrawItem(
HPEN holdPen; HPEN holdPen;
INT oldBkMode; INT oldBkMode;
INT cx,cy; INT cx,cy;
BOOL deleteBrush; BOOL deleteBrush = TRUE;
if (lStyle & TCS_BUTTONS) if (lStyle & TCS_BUTTONS)
{ {
......
...@@ -1259,7 +1259,6 @@ static HRESULT WINAPI DirectPlay3AImpl_InitializeConnection ...@@ -1259,7 +1259,6 @@ static HRESULT WINAPI DirectPlay3AImpl_InitializeConnection
HMODULE hServiceProvider; HMODULE hServiceProvider;
typedef DWORD (WINAPI *SP_SPInit)(LPVOID lpCompoundAddress, ...); /* FIXME: How many arguments? */ typedef DWORD (WINAPI *SP_SPInit)(LPVOID lpCompoundAddress, ...); /* FIXME: How many arguments? */
SP_SPInit SPInit; SP_SPInit SPInit;
DWORD dwReturnValue = 0;
ICOM_THIS(IDirectPlay3Impl,iface); ICOM_THIS(IDirectPlay3Impl,iface);
......
...@@ -30,9 +30,9 @@ extern BOOL TTYDRV_DC_BITMAP_DeleteObject(HBITMAP hbitmap, BITMAPOBJ *bitmap); ...@@ -30,9 +30,9 @@ extern BOOL TTYDRV_DC_BITMAP_DeleteObject(HBITMAP hbitmap, BITMAPOBJ *bitmap);
HGDIOBJ TTYDRV_DC_SelectObject(DC *dc, HGDIOBJ handle) HGDIOBJ TTYDRV_DC_SelectObject(DC *dc, HGDIOBJ handle)
{ {
GDIOBJHDR *ptr = GDI_GetObjPtr(handle, MAGIC_DONTCARE); GDIOBJHDR *ptr = GDI_GetObjPtr(handle, MAGIC_DONTCARE);
HGDIOBJ result = NULL; HGDIOBJ result = 0;
if(!ptr) return NULL; if(!ptr) return 0;
switch(ptr->wMagic) switch(ptr->wMagic)
{ {
......
...@@ -218,10 +218,12 @@ void PROCESS_CallUserSignalProc( UINT uCode, DWORD dwThreadId, HMODULE hModule ) ...@@ -218,10 +218,12 @@ void PROCESS_CallUserSignalProc( UINT uCode, DWORD dwThreadId, HMODULE hModule )
/* Call USER signal proc */ /* Call USER signal proc */
if ( Callout.UserSignalProc ) if ( Callout.UserSignalProc )
{
if ( uCode == USIG_THREAD_INIT || uCode == USIG_THREAD_EXIT ) if ( uCode == USIG_THREAD_INIT || uCode == USIG_THREAD_EXIT )
Callout.UserSignalProc( uCode, dwThreadId, dwFlags, hModule ); Callout.UserSignalProc( uCode, dwThreadId, dwFlags, hModule );
else else
Callout.UserSignalProc( uCode, GetCurrentProcessId(), dwFlags, hModule ); Callout.UserSignalProc( uCode, GetCurrentProcessId(), dwFlags, hModule );
}
} }
/*********************************************************************** /***********************************************************************
......
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