Spelling, grammar and a bit of comment formatting fixes.
This commit is contained in:
parent
17bee2ef58
commit
3bb9a36ee0
|
@ -554,7 +554,7 @@ StartServiceA( SC_HANDLE hService, DWORD dwNumServiceArgs,
|
|||
*
|
||||
* Can only start one service at a time.
|
||||
*
|
||||
* Has no concept of priviledge.
|
||||
* Has no concept of privilege.
|
||||
*
|
||||
* RETURNS STD
|
||||
*
|
||||
|
|
|
@ -43,7 +43,7 @@ NTSTATUS WINAPI NtQueryObject(
|
|||
*
|
||||
* NOTES
|
||||
* only the lowest 4 bit of SecurityObjectInformationClass are used
|
||||
* 0x7-0xf returns STATUS_ACCESS_DENIED (even running with system priviledges)
|
||||
* 0x7-0xf returns STATUS_ACCESS_DENIED (even running with system privileges)
|
||||
*
|
||||
* FIXME: we are constructing a fake sid
|
||||
* (Administrators:Full, System:Full, Everyone:Read)
|
||||
|
|
|
@ -25,8 +25,9 @@ typedef struct CompositeMonikerImpl{
|
|||
|
||||
ICOM_VTABLE(IMoniker)* lpvtbl1; /* VTable relative to the IMoniker interface.*/
|
||||
|
||||
/* The ROT (RunningObjectTable implementation) uses the IROTData interface to test whether
|
||||
* two monikers are equal. That's whay IROTData interface is implemented by monikers.
|
||||
/* The ROT (RunningObjectTable implementation) uses the IROTData
|
||||
* interface to test whether two monikers are equal. That's why IROTData
|
||||
* interface is implemented by monikers.
|
||||
*/
|
||||
ICOM_VTABLE(IROTData)* lpvtbl2; /* VTable relative to the IROTData interface.*/
|
||||
|
||||
|
@ -374,10 +375,12 @@ HRESULT WINAPI CompositeMonikerImpl_Save(IMoniker* iface,IStream* pStm,BOOL fCle
|
|||
|
||||
TRACE("(%p,%p,%d)\n",iface,pStm,fClearDirty);
|
||||
|
||||
/* this function call OleSaveToStream function for each moniker within this object */
|
||||
|
||||
/* when I tested this function in windows system ! I usually found this constant in the begining of */
|
||||
/* the stream I dont known why (there's no indication in specification) ! */
|
||||
/* This function calls OleSaveToStream function for each moniker within
|
||||
* this object.
|
||||
* When I tested this function in windows, I usually found this constant
|
||||
* at the beginning of the stream. I don't known why (there's no
|
||||
* indication in the specification) !
|
||||
*/
|
||||
res=IStream_Write(pStm,&constant,sizeof(constant),NULL);
|
||||
|
||||
IMoniker_Enum(iface,TRUE,&enumMk);
|
||||
|
@ -409,8 +412,9 @@ HRESULT WINAPI CompositeMonikerImpl_GetSizeMax(IMoniker* iface,ULARGE_INTEGER* p
|
|||
IMoniker *pmk;
|
||||
ULARGE_INTEGER ptmpSize;
|
||||
|
||||
/* the sizeMax of this object is calculated by calling GetSizeMax on each moniker within this object then */
|
||||
/* suming all returned sizemax */
|
||||
/* The sizeMax of this object is calculated by calling GetSizeMax on
|
||||
* each moniker within this object then summing all returned values
|
||||
*/
|
||||
|
||||
TRACE("(%p,%p)\n",iface,pcbSize);
|
||||
|
||||
|
@ -449,7 +453,7 @@ HRESULT WINAPI CompositeMonikerImpl_Construct(CompositeMonikerImpl* This,LPMONIK
|
|||
|
||||
TRACE("(%p,%p,%p)\n",This,pmkFirst,pmkRest);
|
||||
|
||||
/* Initialize the virtual fgunction table. */
|
||||
/* Initialize the virtual function table. */
|
||||
This->lpvtbl1 = &VT_CompositeMonikerImpl;
|
||||
This->lpvtbl2 = &VT_ROTDataImpl;
|
||||
This->ref = 0;
|
||||
|
@ -463,7 +467,7 @@ HRESULT WINAPI CompositeMonikerImpl_Construct(CompositeMonikerImpl* This,LPMONIK
|
|||
|
||||
IMoniker_IsSystemMoniker(pmkFirst,&mkSys);
|
||||
|
||||
/* put the first moniker contents in the begining of the table */
|
||||
/* put the first moniker contents in the beginning of the table */
|
||||
if (mkSys!=MKSYS_GENERICCOMPOSITE){
|
||||
|
||||
This->tabMoniker[(This->tabLastIndex)++]=pmkFirst;
|
||||
|
@ -537,8 +541,10 @@ HRESULT WINAPI CompositeMonikerImpl_Construct(CompositeMonikerImpl* This,LPMONIK
|
|||
}
|
||||
else{
|
||||
|
||||
/* add a composite moniker to the moniker table (do the same thing for each moniker within the */
|
||||
/* composite moniker as a simple moniker (see above how to add a simple moniker case) ) */
|
||||
/* add a composite moniker to the moniker table (do the same thing
|
||||
* for each moniker within the composite moniker as a simple moniker
|
||||
* (see above for how to add a simple moniker case) )
|
||||
*/
|
||||
IMoniker_Enum(pmkRest,TRUE,&enumMoniker);
|
||||
|
||||
while(IEnumMoniker_Next(enumMoniker,1,&This->tabMoniker[This->tabLastIndex],NULL)==S_OK){
|
||||
|
|
|
@ -43,9 +43,9 @@ static BSTR WINAPI ERRORINFO_SysAllocString(const OLECHAR* in)
|
|||
|
||||
/*
|
||||
* Allocate a new buffer to hold the string.
|
||||
* dont't forget to keep an empty spot at the begining of the
|
||||
* dont't forget to keep an empty spot at the beginning of the
|
||||
* buffer for the character count and an extra character at the
|
||||
* end for the NULL.
|
||||
* end for the '\0'.
|
||||
*/
|
||||
newBuffer = (DWORD*)HeapAlloc(GetProcessHeap(),
|
||||
0,
|
||||
|
|
|
@ -321,15 +321,23 @@ HRESULT WINAPI FileMonikerImpl_Save(IMoniker* iface,
|
|||
IStream* pStm,/* pointer to the stream where the object is to be saved */
|
||||
BOOL fClearDirty)/* Specifies whether to clear the dirty flag */
|
||||
{
|
||||
/* this function saves data of this object. In the begining I thougth that I have just to write
|
||||
* the filePath string on Stream. But, when I tested this function whith windows programs samples !
|
||||
* I noted that it was not the case. So I analysed data written by this function on Windows system and
|
||||
* what did this function do exactly ! but I have no idear a bout its logic !
|
||||
* I guessed data who must be written on stream wich is:
|
||||
* 1) WORD constant:zero 2) length of the path string ("\0" included) 3) path string type A
|
||||
* 4) DWORD constant : 0xDEADFFFF 5) ten WORD constant: zero 6) DWORD: double-length of the the path
|
||||
* string type W ("\0" not included) 7) WORD constant: 0x3 8) filePath unicode string.
|
||||
* if the length(filePath) > 8 or.length(filePath) == 8 stop at step 5)
|
||||
/* this function saves data of this object. In the beginning I thougth
|
||||
* that I have just to write the filePath string on Stream. But, when I
|
||||
* tested this function whith windows programs samples, I noticed that it
|
||||
* was not the case. So I analysed data written by this function on
|
||||
* Windows and what this did function exactly ! But I have no idea about
|
||||
* its logic !
|
||||
* I guessed data which must be written on stream is:
|
||||
* 1) WORD constant:zero
|
||||
* 2) length of the path string ("\0" included)
|
||||
* 3) path string type A
|
||||
* 4) DWORD constant : 0xDEADFFFF
|
||||
* 5) ten WORD constant: zero
|
||||
* 6) DWORD: double-length of the the path string type W ("\0" not
|
||||
* included)
|
||||
* 7) WORD constant: 0x3
|
||||
* 8) filePath unicode string.
|
||||
* if the length(filePath) > 8 or length(filePath) == 8 stop at step 5)
|
||||
*/
|
||||
|
||||
ICOM_THIS(FileMonikerImpl,iface);
|
||||
|
|
|
@ -261,7 +261,7 @@ HGLOBALStreamImpl* HGLOBALStreamImpl_Construct(
|
|||
}
|
||||
|
||||
/*
|
||||
* Start the stream at the begining.
|
||||
* Start the stream at the beginning.
|
||||
*/
|
||||
newStream->currentPosition.s.HighPart = 0;
|
||||
newStream->currentPosition.s.LowPart = 0;
|
||||
|
|
|
@ -84,7 +84,7 @@ StgStreamImpl* StgStreamImpl_Construct(
|
|||
newStream->ownerProperty = ownerProperty;
|
||||
|
||||
/*
|
||||
* Start the stream at the begining.
|
||||
* Start the stream at the beginning.
|
||||
*/
|
||||
newStream->currentPosition.s.HighPart = 0;
|
||||
newStream->currentPosition.s.LowPart = 0;
|
||||
|
|
|
@ -1736,7 +1736,7 @@ lend:
|
|||
/***********************************************************************
|
||||
* FTP_SendType (internal)
|
||||
*
|
||||
* Tell server type of data being transfered
|
||||
* Tell server type of data being transferred
|
||||
*
|
||||
* RETURNS
|
||||
* TRUE on success
|
||||
|
|
|
@ -1429,7 +1429,7 @@ LPSTR INTERNET_GetResponseBuffer()
|
|||
* Parse next line in directory string listing
|
||||
*
|
||||
* RETURNS
|
||||
* Pointer to begining of next line
|
||||
* Pointer to beginning of next line
|
||||
* NULL on failure
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -744,7 +744,7 @@ static DWORD WAVE_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
|
|||
}
|
||||
|
||||
|
||||
/* go back to begining of chunk plus the requested position */
|
||||
/* go back to beginning of chunk plus the requested position */
|
||||
/* FIXME: I'm not sure this is correct, notably because some data linked to
|
||||
* the decompression state machine will not be correcly initialized.
|
||||
* try it this way (other way would be to decompress from 0 up to dwPosition
|
||||
|
@ -975,7 +975,7 @@ static DWORD WAVE_mciRecord(UINT wDevID, DWORD dwFlags, LPMCI_RECORD_PARMS lpPar
|
|||
wmw->dwPosition = WAVE_ALIGN_ON_BLOCK(wmw, wmw->dwPosition);
|
||||
wmw->ckWaveData.cksize = WAVE_ALIGN_ON_BLOCK(wmw, wmw->ckWaveData.cksize);
|
||||
|
||||
/* go back to begining of chunk plus the requested position */
|
||||
/* go back to beginning of chunk plus the requested position */
|
||||
/* FIXME: I'm not sure this is correct, notably because some data linked to
|
||||
* the decompression state machine will not be correcly initialized.
|
||||
* try it this way (other way would be to decompress from 0 up to dwPosition
|
||||
|
|
|
@ -1425,7 +1425,7 @@ static DWORD modLongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
|
|||
if (lpData[0] != 0xF0) {
|
||||
/* Send end of System Exclusive */
|
||||
SEQ_MIDIOUT(wDevID - MODM_NUMFMSYNTHDEVS, 0xF0);
|
||||
WARN("Adding missing 0xF0 marker at the begining of "
|
||||
WARN("Adding missing 0xF0 marker at the beginning of "
|
||||
"system exclusive byte stream\n");
|
||||
}
|
||||
for (count = 0; count < lpMidiHdr->dwBytesRecorded; count++) {
|
||||
|
|
|
@ -1207,8 +1207,8 @@ HFILE WINAPI _lclose( HFILE hFile )
|
|||
* TRUE on success
|
||||
* FALSE on failure
|
||||
*
|
||||
* If successful (and relevant) lpTransfered will hold the number of
|
||||
* bytes transfered during the async operation.
|
||||
* If successful (and relevant) lpTransferred will hold the number of
|
||||
* bytes transferred during the async operation.
|
||||
*
|
||||
* BUGS
|
||||
*
|
||||
|
@ -1219,7 +1219,7 @@ HFILE WINAPI _lclose( HFILE hFile )
|
|||
BOOL WINAPI GetOverlappedResult(
|
||||
HANDLE hFile, /* [in] handle of file to check on */
|
||||
LPOVERLAPPED lpOverlapped, /* [in/out] pointer to overlapped */
|
||||
LPDWORD lpTransferred, /* [in/out] number of bytes transfered */
|
||||
LPDWORD lpTransferred, /* [in/out] number of bytes transferred */
|
||||
BOOL bWait /* [in] wait for the transfer to complete ? */
|
||||
) {
|
||||
DWORD r;
|
||||
|
|
Loading…
Reference in New Issue