Fixed some more missing WINAPIs (hopefully correct).

This commit is contained in:
Marcus Meissner 1998-10-17 12:10:19 +00:00 committed by Alexandre Julliard
parent fb578cd911
commit f4f1719ca5
8 changed files with 13 additions and 12 deletions

View File

@ -17,7 +17,7 @@
/***********************************************************************
* MSACM_BuiltinDrivers
*/
LONG MSACM_DummyDriverProc(
LONG WINAPI MSACM_DummyDriverProc(
DWORD dwDriverId, HDRVR32 hdrvr, UINT32 msg,
LONG lParam1, LONG lParam2);
@ -29,7 +29,7 @@ WINE_ACMBUILTINDRIVER32 MSACM_BuiltinDrivers32[] = {
/***********************************************************************
* MSACM_DummyDriverProc
*/
LONG MSACM_DummyDriverProc(
LONG WINAPI MSACM_DummyDriverProc(
DWORD dwDriverId, HDRVR32 hdrvr, UINT32 msg,
LONG lParam1, LONG lParam2)
{

View File

@ -14,8 +14,8 @@ extern WORD SYSLEVEL_Win16CurrentTeb;
extern WORD SYSLEVEL_EmergencyTeb;
void SYSLEVEL_Init(void);
VOID SYSLEVEL_EnterWin16Lock(VOID);
VOID SYSLEVEL_LeaveWin16Lock(VOID);
VOID WINAPI SYSLEVEL_EnterWin16Lock(VOID);
VOID WINAPI SYSLEVEL_LeaveWin16Lock(VOID);
VOID SYSLEVEL_ReleaseWin16Lock(VOID);
VOID SYSLEVEL_RestoreWin16Lock(VOID);

View File

@ -1244,7 +1244,7 @@ static LPKEYSTRUCT _w95_processKey ( LPKEYSTRUCT lpkey,
}
while (curdata < next) {
struct dkh *xdkh = curdata;
struct dkh *xdkh = (struct dkh*)curdata;
bytesread += sizeof(dkh); /* FIXME... nextkeyoff? */
if (xdkh->nrLS == nrLS) {
@ -2471,11 +2471,12 @@ DWORD WINAPI RegSetValueEx32W( HKEY hkey, LPWSTR lpszValueName,
lpkey->nrofvalues++;
memset(lpkey->values+i,'\0',sizeof(KEYVALUE));
}
if (lpkey->values[i].name==NULL)
if (lpkey->values[i].name==NULL) {
if (lpszValueName)
lpkey->values[i].name = strdupW(lpszValueName);
else
lpkey->values[i].name = NULL;
}
lpkey->values[i].len = cbData;
lpkey->values[i].type = dwType;
if (lpkey->values[i].data !=NULL)

View File

@ -427,7 +427,7 @@ static ULONG WINAPI IDirectPlayLobbyA_Release
/* Deallocate if this is the last reference to the object */
if( !(this->ref) )
{
deleteDPConnection( this->lpSession );
deleteDPConnection( &(this->lpSession) );
HeapFree( GetProcessHeap(), 0, this );
return S_OK;
}

View File

@ -903,7 +903,7 @@ DSOUND_MixInBuffer(IDirectSoundBuffer *dsb) {
}
}
static DWORD
static DWORD WINAPI
DSOUND_thread(LPVOID arg) {
int res,i,curleft,playing,haveprimary = 0;

View File

@ -295,7 +295,7 @@ ckid=%.4s fccType=%.4s cksize=%08lX \n", (LPSTR)&mmckInfo.ckid, (LPSTR)&mmckInfo
return bRet;
}
static DWORD PlaySound_Thread(LPVOID arg)
static DWORD WINAPI PlaySound_Thread(LPVOID arg)
{
DWORD res;
@ -1957,7 +1957,7 @@ struct SCA32 {
DWORD WINAPI mciSendCommand32A(UINT32 wDevID, UINT32 wMsg, DWORD dwParam1, DWORD dwParam2);
static DWORD mciSCAStarter32(LPVOID arg)
static DWORD WINAPI mciSCAStarter32(LPVOID arg)
{
struct SCA32* sca = (struct SCA32*)arg;
DWORD ret;

View File

@ -101,7 +101,7 @@ static void TIME_TriggerCallBack(LPTIMERENTRY lpTimer, DWORD dwCurrent)
/**************************************************************************
* TIME_MMSysTimeCallback
*/
static VOID TIME_MMSysTimeCallback( HWND32 hwnd, UINT32 msg,
static VOID WINAPI TIME_MMSysTimeCallback( HWND32 hwnd, UINT32 msg,
UINT32 id, DWORD dwTime )
{
LPTIMERENTRY lpTimer;

View File

@ -75,7 +75,7 @@ static void CARET_DisplayCaret( DISPLAY_CARET status )
/*****************************************************************
* CARET_Callback
*/
static VOID CARET_Callback( HWND32 hwnd, UINT32 msg, UINT32 id, DWORD ctime)
static VOID CALLBACK CARET_Callback( HWND32 hwnd, UINT32 msg, UINT32 id, DWORD ctime)
{
TRACE(caret,"hwnd=%04x, timerid=%d, caret=%d\n",
hwnd, id, Caret.on);