Spelling fixes.
This commit is contained in:
parent
9c0ea9eaa8
commit
b4f52938e4
|
@ -4471,9 +4471,9 @@ static void dp2add_ps_test(IDirect3DDevice9 *device)
|
|||
|
||||
/* 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
|
||||
* 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.
|
||||
* 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 */
|
||||
static const DWORD shader_code_dp2add[] = {
|
||||
0xffff0200, /* ps_2_0 */
|
||||
|
|
|
@ -100,7 +100,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicContainer_EnumObject
|
|||
return E_POINTER;
|
||||
}
|
||||
}
|
||||
/* check if we wszAlias is big enough */
|
||||
/* check if wszAlias is big enough */
|
||||
if (pwszAlias && IsBadWritePtr (pwszAlias, DMUS_MAX_FILENAME_SIZE)) {
|
||||
ERR(": wszAlias bad write pointer\n");
|
||||
return E_POINTER;
|
||||
|
@ -158,7 +158,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicObject_GetDescriptor
|
|||
ICOM_THIS_MULTI(IDirectMusicContainerImpl, ObjectVtbl, iface);
|
||||
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))) {
|
||||
ERR(": pDesc->dwSize bad read pointer\n");
|
||||
return E_POINTER;
|
||||
|
@ -184,7 +184,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicObject_SetDescriptor
|
|||
ICOM_THIS_MULTI(IDirectMusicContainerImpl, ObjectVtbl, iface);
|
||||
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))) {
|
||||
ERR(": pDesc->dwSize bad read pointer\n");
|
||||
return E_POINTER;
|
||||
|
@ -461,7 +461,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IPersistStream_Load (LPPERSISTST
|
|||
ERR(": pStm bad read pointer\n");
|
||||
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) {
|
||||
TRACE(": stream is already set, which means container is already loaded\n");
|
||||
return DMUS_E_ALREADY_LOADED;
|
||||
|
@ -923,9 +923,9 @@ HRESULT WINAPI DMUSIC_DestroyDirectMusicContainerImpl (LPDIRECTMUSICCONTAINER if
|
|||
LIST_FOR_EACH (pEntry, This->pContainedObjects) {
|
||||
pContainedObject = LIST_ENTRY (pEntry, WINE_CONTAINER_ENTRY, entry);
|
||||
/* 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
|
||||
ti ignore the flags (I won't) */
|
||||
to ignore the flags (I won't) */
|
||||
if (pContainedObject->pObject && !(pContainedObject->dwFlags & DMUS_CONTAINED_OBJF_KEEP)) {
|
||||
/* flags say it shouldn't be kept in loader's cache */
|
||||
IDirectMusicLoader_ReleaseObject (pLoader, pContainedObject->pObject);
|
||||
|
|
|
@ -735,7 +735,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParsePatternList (LPPERSIST
|
|||
IStream_Read (pStm, &pNewMotif->pattern, Chunk.dwSize, NULL);
|
||||
/** TODO trace pattern */
|
||||
|
||||
/** reset all datas, as a new pattern begin */
|
||||
/** reset all data, as a new pattern begin */
|
||||
DM_STRUCT_INIT(&pNewMotif->desc);
|
||||
list_init (&pNewMotif->Items);
|
||||
break;
|
||||
|
@ -757,7 +757,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParsePatternList (LPPERSIST
|
|||
}
|
||||
case FOURCC_RIFF: {
|
||||
/**
|
||||
* sould be embededs Bands into pattern
|
||||
* should be embedded Bands into pattern
|
||||
*/
|
||||
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
||||
TRACE_(dmfile)(": RIFF chunk of type %s", debugstr_fourcc(Chunk.fccID));
|
||||
|
@ -785,7 +785,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParsePatternList (LPPERSIST
|
|||
pNewMotif->pBand = 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 */
|
||||
liMove.QuadPart = ListSize[1];
|
||||
|
@ -897,7 +897,7 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParseStyleForm (LPPERSISTST
|
|||
}
|
||||
case FOURCC_RIFF: {
|
||||
/**
|
||||
* sould be embededs Bands into style
|
||||
* should be embedded Bands into style
|
||||
*/
|
||||
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
||||
TRACE_(dmfile)(": RIFF chunk of type %s", debugstr_fourcc(Chunk.fccID));
|
||||
|
@ -932,9 +932,9 @@ static HRESULT IDirectMusicStyle8Impl_IPersistStream_ParseStyleForm (LPPERSISTST
|
|||
IDirectMusicBand_AddRef(pBand);
|
||||
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];
|
||||
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
||||
|
||||
|
|
|
@ -588,7 +588,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
|||
case FOURCC_INS: {
|
||||
LPDMUS_PRIVATE_INSTRUMENTENTRY pNewInstrument = HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, sizeof(DMUS_PRIVATE_INSTRUMENTENTRY));
|
||||
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);
|
||||
liMove.QuadPart = 0;
|
||||
|
|
|
@ -410,7 +410,7 @@ dns_ns_name_skip(const u_char **ptrptr, const u_char *eom) {
|
|||
/*
|
||||
* special(ch)
|
||||
* 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:
|
||||
* boolean.
|
||||
*/
|
||||
|
|
|
@ -1978,7 +1978,7 @@ static HRESULT WINAPI DP_IF_EnumGroupPlayers
|
|||
for( ;; )
|
||||
{
|
||||
/* 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 ) &&
|
||||
( lpPList->lpPData->dpid != DPID_SERVERPLAYER )
|
||||
|
@ -3334,7 +3334,7 @@ DWORD DP_CalcSessionDescSize( LPCDPSESSIONDESC2 lpSessDesc, BOOL bAnsi )
|
|||
return dwSize;
|
||||
}
|
||||
|
||||
/* Assumes that contugous buffers are already allocated. */
|
||||
/* Assumes that contiguous buffers are already allocated. */
|
||||
static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest,
|
||||
LPCDPSESSIONDESC2 lpSessionSrc, BOOL bAnsi )
|
||||
{
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
*
|
||||
* NOTES:
|
||||
* o Implementation of all things which are associated with dplay on
|
||||
* the computer - ie shared resources and such. Methods in this
|
||||
* compilation unit should not call anything out side this unit
|
||||
* excepting base windows services and an interface to start the
|
||||
* the computer - i.e. shared resources and such. Methods in this
|
||||
* compilation unit should not call anything outside of this unit
|
||||
* except base windows services and an interface to start the
|
||||
* messaging thread.
|
||||
* o Methods that begin with DPLAYX_ are used for dealing with
|
||||
* dplayx.dll data which is accessible from all processes.
|
||||
|
@ -333,7 +333,7 @@ BOOL DPLAYX_ConstructData(void)
|
|||
sessionData[i].dwSize = 0;
|
||||
}
|
||||
|
||||
/* Zero out the dynmaic area */
|
||||
/* Zero out the dynamic area */
|
||||
ZeroMemory( lpMemArea, dwDynamicSharedSize );
|
||||
|
||||
/* Just for fun sync the whole data area */
|
||||
|
@ -433,7 +433,7 @@ BOOL DPLAYX_IsAppIdLobbied( DWORD dwAppID, LPDPLAYX_LOBBYDATA* lplpDplData )
|
|||
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 )
|
||||
{
|
||||
UINT i;
|
||||
|
@ -506,7 +506,7 @@ BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID,
|
|||
{
|
||||
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 )
|
||||
{
|
||||
return FALSE;
|
||||
|
@ -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.
|
||||
* FIXME: We need to free information as well
|
||||
* FIXME: We need to free information as well.
|
||||
*/
|
||||
HRESULT DPLAYX_SetConnectionSettingsA
|
||||
( DWORD dwFlags,
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* o DPMSGCMD_ENUMSESSIONSREPLY & DPMSGCMD_ENUMSESSIONSREQUEST
|
||||
* Have most fields understood, but not all. Everything seems to work.
|
||||
* 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)
|
||||
* introduces a layer of functionality inside the DP objects which
|
||||
* provide guaranteed protocol delivery. This is even if the native
|
||||
|
@ -30,7 +30,7 @@
|
|||
* to leave this kind of implementation to as close to the end as
|
||||
* possible. However, I will implement an abstraction layer, where
|
||||
* 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.
|
||||
*
|
||||
* TODO:
|
||||
|
@ -102,7 +102,7 @@ HRESULT WINAPI DllCanUnloadNow(void)
|
|||
HRESULT hr = ( gdwDPlaySPRefCount > 0 ) ? S_FALSE : S_OK;
|
||||
|
||||
/* FIXME: Should I be putting a check in for class factory objects
|
||||
* as well
|
||||
* as well?
|
||||
*/
|
||||
|
||||
TRACE( ": returning 0x%08x\n", hr );
|
||||
|
|
|
@ -1388,7 +1388,7 @@ static HRESULT WINAPI IDirectPlayLobbyWImpl_SetConnectionSettings
|
|||
|
||||
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
|
||||
for this... */
|
||||
if( hr == DPERR_NOTLOBBIED )
|
||||
|
@ -1422,7 +1422,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_SetConnectionSettings
|
|||
|
||||
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
|
||||
for this... */
|
||||
if( hr == DPERR_NOTLOBBIED )
|
||||
|
|
|
@ -31,7 +31,7 @@ static BOOL CALLBACK EnumConnectionsCallback(LPCGUID lpguidSP, LPVOID lpConnecti
|
|||
|
||||
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);
|
||||
if( SUCCEEDED( hr ))
|
||||
validSP = TRUE;
|
||||
|
|
|
@ -615,7 +615,7 @@ static DWORD DSOUND_MixOne(IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD mi
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* take into acount already mixed data */
|
||||
/* take into account already mixed data */
|
||||
mixlen -= primary_done;
|
||||
|
||||
TRACE("primary_done=%d, mixlen (primary) = %i\n", primary_done, mixlen);
|
||||
|
@ -742,7 +742,7 @@ static void DSOUND_WaveQueue(DirectSoundDevice *device, BOOL force)
|
|||
/* calculate the current wave frag position */
|
||||
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;
|
||||
|
||||
TRACE("wave_fragpos = %i, wave_writepos = %i, pwqueue = %i, prebuf = %i\n",
|
||||
|
@ -908,7 +908,7 @@ static void DSOUND_PerformMix(DirectSoundDevice *device)
|
|||
else
|
||||
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 %= device->buflen;
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ static const WCHAR SZ_EXCLUSIONLIST_KEY[] = {
|
|||
* AddERExcludedApplicationW [FAULTREP.@]
|
||||
*
|
||||
* Adds an application to a list of applications for which fault reports
|
||||
* shouldn't be genereated
|
||||
* shouldn't be generated
|
||||
*
|
||||
* PARAMS
|
||||
* lpAppFileName [I] The filename of the application executable
|
||||
|
@ -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
|
||||
* 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.
|
||||
*/
|
||||
BOOL WINAPI AddERExcludedApplicationW(LPCWSTR lpAppFileName)
|
||||
|
|
Loading…
Reference in New Issue