Commit a9f6a9da authored by Patrik Stridvall's avatar Patrik Stridvall Committed by Alexandre Julliard

Explicitly initialize structures.

parent f87b96e7
......@@ -1598,6 +1598,14 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Unlock(
return DS_OK;
}
static HRESULT WINAPI IDirectSoundBufferImpl_Restore(
LPDIRECTSOUNDBUFFER iface
) {
ICOM_THIS(IDirectSoundBufferImpl,iface);
FIXME("(%p):stub\n",This);
return DS_OK;
}
static HRESULT WINAPI IDirectSoundBufferImpl_GetFrequency(
LPDIRECTSOUNDBUFFER iface,LPDWORD freq
) {
......@@ -1787,7 +1795,8 @@ static ICOM_VTABLE(IDirectSoundBuffer) dsbvt =
IDirectSoundBufferImpl_SetPan,
IDirectSoundBufferImpl_SetFrequency,
IDirectSoundBufferImpl_Stop,
IDirectSoundBufferImpl_Unlock
IDirectSoundBufferImpl_Unlock,
IDirectSoundBufferImpl_Restore
};
/*******************************************************************************
......
......@@ -196,13 +196,22 @@ static PSDRV_DEVMODEA DefaultDevmode =
/* dmPelsWidth */ 0,
/* dmPelsHeight */ 0,
/* dmDisplayFlags */ 0,
/* dmDisplayFrequency */ 0
/* dmDisplayFrequency */ 0,
/* dmICMMethod */ 0,
/* dmICMIntent */ 0,
/* dmMediaType */ 0,
/* dmDitherType */ 0,
/* dmReserved1 */ 0,
/* dmReserved2 */ 0,
/* dmPanningWidth */ 0,
/* dmPanningHeight */ 0
},
{ /* dmDocPrivate */
0 /* dummy */
/* dummy */ 0
},
{ /* dmDrvPrivate */
/* ppdfilename */ "default.ppd"
/* ppdfilename */ "default.ppd",
/* numInstalledOptions */ 0
}
};
......
......@@ -38,8 +38,26 @@ extern WORD CALLBACK THUNK_CallTo16_word_wwwl (FARPROC16,WORD,WORD,WORD,LONG);
static THUNK *firstThunk = NULL;
CALLOUT_TABLE Callout = { 0 };
CALLOUT_TABLE Callout = {
/* PeekMessageA */ NULL,
/* GetMessageA */ NULL,
/* SendMessageA */ NULL,
/* PostMessageA */ NULL,
/* PostAppMessage16 */ NULL,
/* TranslateMessage */ NULL,
/* DispatchMessageA */ NULL,
/* RedrawWindow */ NULL,
/* UserSignalProc */ NULL,
/* FinalUserInit16 */ NULL,
/* InitThreadInput16 */ NULL,
/* UserYield16) */ NULL,
/* DestroyIcon32 */ NULL,
/* WaitForInputIdle */ NULL,
/* MsgWaitForMultipleObjects */ NULL,
/* WindowFromDC */ NULL,
/* MessageBoxA */ NULL,
/* MessageBoxW */ NULL
};
/***********************************************************************
* THUNK_Alloc
......
......@@ -42,7 +42,7 @@ DECLARE_DEBUG_CHANNEL(toolhelp);
#define MIN_THUNKS 32
static THHOOK DefaultThhook = { 0 };
static THHOOK DefaultThhook;
THHOOK *pThhook = &DefaultThhook;
#define hCurrentTask (pThhook->CurTDB)
......
......@@ -96,7 +96,7 @@ static const struct option option_table[] =
"--version,-v Display the Wine version" },
{ "winver", 0, 1, 1, VERSION_ParseWinVersion,
"--winver Version to imitate (one of win31,win95,nt351,nt40)" },
{ NULL, } /* terminator */
{ NULL, 0, 0, 0, NULL, NULL } /* terminator */
};
......
......@@ -78,7 +78,7 @@ static struct master_socket *master_socket; /* the master socket object */
/* socket communication static structures */
static struct iovec myiovec;
static struct msghdr msghdr = { NULL, 0, &myiovec, 1, };
static struct msghdr msghdr = { NULL, 0, &myiovec, 1, /* remaining fields depend on system */ };
#ifndef HAVE_MSGHDR_ACCRIGHTS
struct cmsg_fd
{
......
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