Commit b4f52938 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

Spelling fixes.

parent 9c0ea9ea
...@@ -4471,9 +4471,9 @@ static void dp2add_ps_test(IDirect3DDevice9 *device) ...@@ -4471,9 +4471,9 @@ static void dp2add_ps_test(IDirect3DDevice9 *device)
/* DP2ADD is defined as: (src0.r * src1.r) + (src0.g * src1.g) + src2. /* DP2ADD is defined as: (src0.r * src1.r) + (src0.g * src1.g) + src2.
* One D3D restriction of all shader instructions except SINCOS is that no more than 2 * One D3D restriction of all shader instructions except SINCOS is that no more than 2
* source tokens can be constants. So, for this excercise, we move contents of c0 to * source tokens can be constants. So, for this exercise, we move contents of c0 to
* r0 first. * r0 first.
* The result here for the r,g,b components should be rougly 0.5: * The result here for the r,g,b components should be roughly 0.5:
* (0.5 * 0.5) + (0.5 * 0.5) + 0.0 = 0.5 */ * (0.5 * 0.5) + (0.5 * 0.5) + 0.0 = 0.5 */
static const DWORD shader_code_dp2add[] = { static const DWORD shader_code_dp2add[] = {
0xffff0200, /* ps_2_0 */ 0xffff0200, /* ps_2_0 */
......
...@@ -100,7 +100,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicContainer_EnumObject ...@@ -100,7 +100,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicContainer_EnumObject
return E_POINTER; return E_POINTER;
} }
} }
/* check if we wszAlias is big enough */ /* check if wszAlias is big enough */
if (pwszAlias && IsBadWritePtr (pwszAlias, DMUS_MAX_FILENAME_SIZE)) { if (pwszAlias && IsBadWritePtr (pwszAlias, DMUS_MAX_FILENAME_SIZE)) {
ERR(": wszAlias bad write pointer\n"); ERR(": wszAlias bad write pointer\n");
return E_POINTER; return E_POINTER;
...@@ -158,7 +158,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicObject_GetDescriptor ...@@ -158,7 +158,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicObject_GetDescriptor
ICOM_THIS_MULTI(IDirectMusicContainerImpl, ObjectVtbl, iface); ICOM_THIS_MULTI(IDirectMusicContainerImpl, ObjectVtbl, iface);
TRACE("(%p, %p):\n", This, pDesc); TRACE("(%p, %p):\n", This, pDesc);
/* check if whe can write to whole pDesc */ /* check if we can write to whole pDesc */
if (IsBadReadPtr (pDesc, sizeof(DWORD))) { if (IsBadReadPtr (pDesc, sizeof(DWORD))) {
ERR(": pDesc->dwSize bad read pointer\n"); ERR(": pDesc->dwSize bad read pointer\n");
return E_POINTER; return E_POINTER;
...@@ -184,7 +184,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicObject_SetDescriptor ...@@ -184,7 +184,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicObject_SetDescriptor
ICOM_THIS_MULTI(IDirectMusicContainerImpl, ObjectVtbl, iface); ICOM_THIS_MULTI(IDirectMusicContainerImpl, ObjectVtbl, iface);
TRACE("(%p, %p):\n", This, pDesc); TRACE("(%p, %p):\n", This, pDesc);
/* check if whe can read whole pDesc */ /* check if we can read whole pDesc */
if (IsBadReadPtr (pDesc, sizeof(DWORD))) { if (IsBadReadPtr (pDesc, sizeof(DWORD))) {
ERR(": pDesc->dwSize bad read pointer\n"); ERR(": pDesc->dwSize bad read pointer\n");
return E_POINTER; return E_POINTER;
...@@ -461,7 +461,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IPersistStream_Load (LPPERSISTST ...@@ -461,7 +461,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IPersistStream_Load (LPPERSISTST
ERR(": pStm bad read pointer\n"); ERR(": pStm bad read pointer\n");
return E_POINTER; return E_POINTER;
} }
/* if stream is already set, this means we're loaded already */ /* if stream is already set, this means the container is already loaded */
if (This->pStream) { if (This->pStream) {
TRACE(": stream is already set, which means container is already loaded\n"); TRACE(": stream is already set, which means container is already loaded\n");
return DMUS_E_ALREADY_LOADED; return DMUS_E_ALREADY_LOADED;
...@@ -923,9 +923,9 @@ HRESULT WINAPI DMUSIC_DestroyDirectMusicContainerImpl (LPDIRECTMUSICCONTAINER if ...@@ -923,9 +923,9 @@ HRESULT WINAPI DMUSIC_DestroyDirectMusicContainerImpl (LPDIRECTMUSICCONTAINER if
LIST_FOR_EACH (pEntry, This->pContainedObjects) { LIST_FOR_EACH (pEntry, This->pContainedObjects) {
pContainedObject = LIST_ENTRY (pEntry, WINE_CONTAINER_ENTRY, entry); pContainedObject = LIST_ENTRY (pEntry, WINE_CONTAINER_ENTRY, entry);
/* my tests indicate that container releases objects *only* /* my tests indicate that container releases objects *only*
if they were loaded at it's load-time (makes sense, it doesn't if they were loaded at its load-time (makes sense, it doesn't
have pointers to objects otherwise); BTW: native container seems have pointers to objects otherwise); BTW: native container seems
ti ignore the flags (I won't) */ to ignore the flags (I won't) */
if (pContainedObject->pObject && !(pContainedObject->dwFlags & DMUS_CONTAINED_OBJF_KEEP)) { if (pContainedObject->pObject && !(pContainedObject->dwFlags & DMUS_CONTAINED_OBJF_KEEP)) {
/* flags say it shouldn't be kept in loader's cache */ /* flags say it shouldn't be kept in loader's cache */
IDirectMusicLoader_ReleaseObject (pLoader, pContainedObject->pObject); IDirectMusicLoader_ReleaseObject (pLoader, pContainedObject->pObject);
......
...@@ -735,7 +735,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParsePatternList (LPPERSIST ...@@ -735,7 +735,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParsePatternList (LPPERSIST
IStream_Read (pStm, &pNewMotif->pattern, Chunk.dwSize, NULL); IStream_Read (pStm, &pNewMotif->pattern, Chunk.dwSize, NULL);
/** TODO trace pattern */ /** TODO trace pattern */
/** reset all datas, as a new pattern begin */ /** reset all data, as a new pattern begin */
DM_STRUCT_INIT(&pNewMotif->desc); DM_STRUCT_INIT(&pNewMotif->desc);
list_init (&pNewMotif->Items); list_init (&pNewMotif->Items);
break; break;
...@@ -757,7 +757,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParsePatternList (LPPERSIST ...@@ -757,7 +757,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParsePatternList (LPPERSIST
} }
case FOURCC_RIFF: { case FOURCC_RIFF: {
/** /**
* sould be embededs Bands into pattern * should be embedded Bands into pattern
*/ */
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL); IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
TRACE_(dmfile)(": RIFF chunk of type %s", debugstr_fourcc(Chunk.fccID)); TRACE_(dmfile)(": RIFF chunk of type %s", debugstr_fourcc(Chunk.fccID));
...@@ -785,7 +785,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParsePatternList (LPPERSIST ...@@ -785,7 +785,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParsePatternList (LPPERSIST
pNewMotif->pBand = pBand; pNewMotif->pBand = pBand;
IDirectMusicBand_AddRef(pBand); IDirectMusicBand_AddRef(pBand);
IDirectMusicTrack_Release(pBand); pBand = NULL; /* now we can release at as it inserted */ IDirectMusicTrack_Release(pBand); pBand = NULL; /* now we can release it as it's inserted */
/** now safe move the cursor */ /** now safe move the cursor */
liMove.QuadPart = ListSize[1]; liMove.QuadPart = ListSize[1];
...@@ -897,7 +897,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParseStyleForm (LPPERSISTST ...@@ -897,7 +897,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParseStyleForm (LPPERSISTST
} }
case FOURCC_RIFF: { case FOURCC_RIFF: {
/** /**
* sould be embededs Bands into style * should be embedded Bands into style
*/ */
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL); IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
TRACE_(dmfile)(": RIFF chunk of type %s", debugstr_fourcc(Chunk.fccID)); TRACE_(dmfile)(": RIFF chunk of type %s", debugstr_fourcc(Chunk.fccID));
...@@ -932,9 +932,9 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParseStyleForm (LPPERSISTST ...@@ -932,9 +932,9 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParseStyleForm (LPPERSISTST
IDirectMusicBand_AddRef(pBand); IDirectMusicBand_AddRef(pBand);
list_add_tail (&This->Bands, &pNewBand->entry); list_add_tail (&This->Bands, &pNewBand->entry);
IDirectMusicTrack_Release(pBand); pBand = NULL; /* now we can release at as it inserted */ IDirectMusicTrack_Release(pBand); pBand = NULL; /* now we can release it as it's inserted */
/** now safe move the cursor */ /** now safely move the cursor */
liMove.QuadPart = ListSize[0]; liMove.QuadPart = ListSize[0];
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL); IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
......
...@@ -588,7 +588,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS ...@@ -588,7 +588,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
case FOURCC_INS: { case FOURCC_INS: {
LPDMUS_PRIVATE_INSTRUMENTENTRY pNewInstrument = HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, sizeof(DMUS_PRIVATE_INSTRUMENTENTRY)); LPDMUS_PRIVATE_INSTRUMENTENTRY pNewInstrument = HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, sizeof(DMUS_PRIVATE_INSTRUMENTENTRY));
TRACE_(dmfile)(": instrument list\n"); TRACE_(dmfile)(": instrument list\n");
DMUSIC_CreateDirectMusicInstrumentImpl (&IID_IDirectMusicInstrument, (LPVOID*)&pNewInstrument->pInstrument, NULL); /* only way to create this one... even M$ does it discretly */ DMUSIC_CreateDirectMusicInstrumentImpl (&IID_IDirectMusicInstrument, (LPVOID*)&pNewInstrument->pInstrument, NULL); /* only way to create this one... even M$ does it discretely */
{ {
ICOM_NAME_MULTI (IDirectMusicInstrumentImpl, InstrumentVtbl, pNewInstrument->pInstrument, pInstrument); ICOM_NAME_MULTI (IDirectMusicInstrumentImpl, InstrumentVtbl, pNewInstrument->pInstrument, pInstrument);
liMove.QuadPart = 0; liMove.QuadPart = 0;
......
...@@ -410,7 +410,7 @@ dns_ns_name_skip(const u_char **ptrptr, const u_char *eom) { ...@@ -410,7 +410,7 @@ dns_ns_name_skip(const u_char **ptrptr, const u_char *eom) {
/* /*
* special(ch) * special(ch)
* Thinking in noninternationalized USASCII (per the DNS spec), * Thinking in noninternationalized USASCII (per the DNS spec),
* is this characted special ("in need of quoting") ? * is this character special ("in need of quoting") ?
* return: * return:
* boolean. * boolean.
*/ */
......
...@@ -1978,7 +1978,7 @@ static HRESULT WINAPI DP_IF_EnumGroupPlayers ...@@ -1978,7 +1978,7 @@ static HRESULT WINAPI DP_IF_EnumGroupPlayers
for( ;; ) for( ;; )
{ {
/* We do not enum the name server or app server as they are of no /* We do not enum the name server or app server as they are of no
* concequence to the end user. * consequence to the end user.
*/ */
if( ( lpPList->lpPData->dpid != DPID_NAME_SERVER ) && if( ( lpPList->lpPData->dpid != DPID_NAME_SERVER ) &&
( lpPList->lpPData->dpid != DPID_SERVERPLAYER ) ( lpPList->lpPData->dpid != DPID_SERVERPLAYER )
...@@ -3334,7 +3334,7 @@ DWORD DP_CalcSessionDescSize( LPCDPSESSIONDESC2 lpSessDesc, BOOL bAnsi ) ...@@ -3334,7 +3334,7 @@ DWORD DP_CalcSessionDescSize( LPCDPSESSIONDESC2 lpSessDesc, BOOL bAnsi )
return dwSize; return dwSize;
} }
/* Assumes that contugous buffers are already allocated. */ /* Assumes that contiguous buffers are already allocated. */
static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest, static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest,
LPCDPSESSIONDESC2 lpSessionSrc, BOOL bAnsi ) LPCDPSESSIONDESC2 lpSessionSrc, BOOL bAnsi )
{ {
......
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
* *
* NOTES: * NOTES:
* o Implementation of all things which are associated with dplay on * o Implementation of all things which are associated with dplay on
* the computer - ie shared resources and such. Methods in this * the computer - i.e. shared resources and such. Methods in this
* compilation unit should not call anything out side this unit * compilation unit should not call anything outside of this unit
* excepting base windows services and an interface to start the * except base windows services and an interface to start the
* messaging thread. * messaging thread.
* o Methods that begin with DPLAYX_ are used for dealing with * o Methods that begin with DPLAYX_ are used for dealing with
* dplayx.dll data which is accessible from all processes. * dplayx.dll data which is accessible from all processes.
...@@ -333,7 +333,7 @@ BOOL DPLAYX_ConstructData(void) ...@@ -333,7 +333,7 @@ BOOL DPLAYX_ConstructData(void)
sessionData[i].dwSize = 0; sessionData[i].dwSize = 0;
} }
/* Zero out the dynmaic area */ /* Zero out the dynamic area */
ZeroMemory( lpMemArea, dwDynamicSharedSize ); ZeroMemory( lpMemArea, dwDynamicSharedSize );
/* Just for fun sync the whole data area */ /* Just for fun sync the whole data area */
...@@ -433,7 +433,7 @@ BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppID, LPDPLAYX_LOBBYDATA* lplpDplData ) ...@@ -433,7 +433,7 @@ BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppID, LPDPLAYX_LOBBYDATA* lplpDplData )
return FALSE; return FALSE;
} }
/* Reserve a spot for the new appliction. TRUE means success and FALSE failure. */ /* Reserve a spot for the new application. TRUE means success and FALSE failure. */
BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID ) BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID )
{ {
UINT i; UINT i;
...@@ -506,7 +506,7 @@ BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID, ...@@ -506,7 +506,7 @@ BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID,
{ {
LPDPLAYX_LOBBYDATA lpLData; LPDPLAYX_LOBBYDATA lpLData;
/* Need to explictly give lobby application. Can't set for yourself */ /* Need to explicitly give lobby application. Can't set for yourself */
if( dwAppID == 0 ) if( dwAppID == 0 )
{ {
return FALSE; return FALSE;
...@@ -848,9 +848,9 @@ void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, const DPLCONNECTION *src ) ...@@ -848,9 +848,9 @@ void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, const DPLCONNECTION *src )
} }
/* Store the structure into the shared data structre. Ensure that allocs for /* Store the structure into the shared data structure. Ensure that allocs for
* variable length strings come from the shared data structure. * variable length strings come from the shared data structure.
* FIXME: We need to free information as well * FIXME: We need to free information as well.
*/ */
HRESULT DPLAYX_SetConnectionSettingsA HRESULT DPLAYX_SetConnectionSettingsA
( DWORD dwFlags, ( DWORD dwFlags,
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* o DPMSGCMD_ENUMSESSIONSREPLY & DPMSGCMD_ENUMSESSIONSREQUEST * o DPMSGCMD_ENUMSESSIONSREPLY & DPMSGCMD_ENUMSESSIONSREQUEST
* Have most fields understood, but not all. Everything seems to work. * Have most fields understood, but not all. Everything seems to work.
* o DPMSGCMD_REQUESTNEWPLAYERID & DPMSGCMD_NEWPLAYERIDREPLY * o DPMSGCMD_REQUESTNEWPLAYERID & DPMSGCMD_NEWPLAYERIDREPLY
* Barely work. This needs to be completed for sessions to start. * Barely works. This needs to be completed for sessions to start.
* o A small issue will be the fact that DirectX 6.1(ie. DirectPlay4) * o A small issue will be the fact that DirectX 6.1(ie. DirectPlay4)
* introduces a layer of functionality inside the DP objects which * introduces a layer of functionality inside the DP objects which
* provide guaranteed protocol delivery. This is even if the native * provide guaranteed protocol delivery. This is even if the native
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* to leave this kind of implementation to as close to the end as * to leave this kind of implementation to as close to the end as
* possible. However, I will implement an abstraction layer, where * possible. However, I will implement an abstraction layer, where
* possible, for this functionality. It will do nothing to start, but * possible, for this functionality. It will do nothing to start, but
* will require only the implementation of the guaranteness to give * will require only the implementation of the guarantee to give
* final implementation. * final implementation.
* *
* TODO: * TODO:
...@@ -102,7 +102,7 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -102,7 +102,7 @@ HRESULT WINAPI DllCanUnloadNow(void)
HRESULT hr = ( gdwDPlaySPRefCount > 0 ) ? S_FALSE : S_OK; HRESULT hr = ( gdwDPlaySPRefCount > 0 ) ? S_FALSE : S_OK;
/* FIXME: Should I be putting a check in for class factory objects /* FIXME: Should I be putting a check in for class factory objects
* as well * as well?
*/ */
TRACE( ": returning 0x%08x\n", hr ); TRACE( ": returning 0x%08x\n", hr );
......
...@@ -1388,7 +1388,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_SetConnectionSettings ...@@ -1388,7 +1388,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_SetConnectionSettings
hr = DPLAYX_SetConnectionSettingsW( dwFlags, dwAppID, lpConn ); hr = DPLAYX_SetConnectionSettingsW( dwFlags, dwAppID, lpConn );
/* FIXME: Don't think that this is supposed to fail, but the docuementation /* FIXME: Don't think that this is supposed to fail, but the documentation
is somewhat sketchy. I'll try creating a lobby application is somewhat sketchy. I'll try creating a lobby application
for this... */ for this... */
if( hr == DPERR_NOTLOBBIED ) if( hr == DPERR_NOTLOBBIED )
...@@ -1422,7 +1422,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_SetConnectionSettings ...@@ -1422,7 +1422,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_SetConnectionSettings
hr = DPLAYX_SetConnectionSettingsA( dwFlags, dwAppID, lpConn ); hr = DPLAYX_SetConnectionSettingsA( dwFlags, dwAppID, lpConn );
/* FIXME: Don't think that this is supposed to fail, but the docuementation /* FIXME: Don't think that this is supposed to fail, but the documentation
is somewhat sketchy. I'll try creating a lobby application is somewhat sketchy. I'll try creating a lobby application
for this... */ for this... */
if( hr == DPERR_NOTLOBBIED ) if( hr == DPERR_NOTLOBBIED )
......
...@@ -31,7 +31,7 @@ static BOOL CALLBACK EnumConnectionsCallback(LPCGUID lpguidSP, LPVOID lpConnecti ...@@ -31,7 +31,7 @@ static BOOL CALLBACK EnumConnectionsCallback(LPCGUID lpguidSP, LPVOID lpConnecti
if(IsEqualGUID(lpguidSP,&DPSPGUID_TCPIP)) if(IsEqualGUID(lpguidSP,&DPSPGUID_TCPIP))
{ {
/*I'm forcing TCP/IP Sevice provider*/ /*I'm forcing the TCP/IP Service provider*/
hr = IDirectPlayX_InitializeConnection((LPDIRECTPLAY4) lpContext, lpConnection, 0); hr = IDirectPlayX_InitializeConnection((LPDIRECTPLAY4) lpContext, lpConnection, 0);
if( SUCCEEDED( hr )) if( SUCCEEDED( hr ))
validSP = TRUE; validSP = TRUE;
......
...@@ -615,7 +615,7 @@ static DWORD DSOUND_MixOne(IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD mi ...@@ -615,7 +615,7 @@ static DWORD DSOUND_MixOne(IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD mi
return 0; return 0;
} }
/* take into acount already mixed data */ /* take into account already mixed data */
mixlen -= primary_done; mixlen -= primary_done;
TRACE("primary_done=%d, mixlen (primary) = %i\n", primary_done, mixlen); TRACE("primary_done=%d, mixlen (primary) = %i\n", primary_done, mixlen);
...@@ -742,7 +742,7 @@ static void DSOUND_WaveQueue(DirectSoundDevice *device, BOOL force) ...@@ -742,7 +742,7 @@ static void DSOUND_WaveQueue(DirectSoundDevice *device, BOOL force)
/* calculate the current wave frag position */ /* calculate the current wave frag position */
wave_fragpos = (device->pwplay + device->pwqueue) % device->helfrags; wave_fragpos = (device->pwplay + device->pwqueue) % device->helfrags;
/* calculte the current wave write position */ /* calculate the current wave write position */
wave_writepos = wave_fragpos * device->fraglen; wave_writepos = wave_fragpos * device->fraglen;
TRACE("wave_fragpos = %i, wave_writepos = %i, pwqueue = %i, prebuf = %i\n", TRACE("wave_fragpos = %i, wave_writepos = %i, pwqueue = %i, prebuf = %i\n",
...@@ -908,7 +908,7 @@ static void DSOUND_PerformMix(DirectSoundDevice *device) ...@@ -908,7 +908,7 @@ static void DSOUND_PerformMix(DirectSoundDevice *device)
else else
device->normfunction(device->mix_buffer + DSOUND_bufpos_to_mixpos(device, writepos), device->buffer + writepos, frag); device->normfunction(device->mix_buffer + DSOUND_bufpos_to_mixpos(device, writepos), device->buffer + writepos, frag);
/* update the mix position, taking wrap-around into acount */ /* update the mix position, taking wrap-around into account */
device->mixpos = writepos + frag; device->mixpos = writepos + frag;
device->mixpos %= device->buflen; device->mixpos %= device->buflen;
......
...@@ -41,7 +41,7 @@ static const WCHAR SZ_EXCLUSIONLIST_KEY[] = { ...@@ -41,7 +41,7 @@ static const WCHAR SZ_EXCLUSIONLIST_KEY[] = {
* AddERExcludedApplicationW [FAULTREP.@] * AddERExcludedApplicationW [FAULTREP.@]
* *
* Adds an application to a list of applications for which fault reports * Adds an application to a list of applications for which fault reports
* shouldn't be genereated * shouldn't be generated
* *
* PARAMS * PARAMS
* lpAppFileName [I] The filename of the application executable * lpAppFileName [I] The filename of the application executable
...@@ -53,7 +53,7 @@ static const WCHAR SZ_EXCLUSIONLIST_KEY[] = { ...@@ -53,7 +53,7 @@ static const WCHAR SZ_EXCLUSIONLIST_KEY[] = {
* Wine doesn't use this data but stores it in the registry (in the same place * Wine doesn't use this data but stores it in the registry (in the same place
* as Windows would) in case it will be useful in a future version * as Windows would) in case it will be useful in a future version
* *
* According to MSDN this function should succeed even if the user have no write * According to MSDN this function should succeed even if the user has no write
* access to HKLM. This probably means that there is no error checking. * access to HKLM. This probably means that there is no error checking.
*/ */
BOOL WINAPI AddERExcludedApplicationW(LPCWSTR lpAppFileName) BOOL WINAPI AddERExcludedApplicationW(LPCWSTR lpAppFileName)
......
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