Spelling, grammar and a bit of comment formatting fixes.
diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c
index bac3aea..679821e 100644
--- a/dlls/advapi32/service.c
+++ b/dlls/advapi32/service.c
@@ -554,7 +554,7 @@
*
* Can only start one service at a time.
*
- * Has no concept of priviledge.
+ * Has no concept of privilege.
*
* RETURNS STD
*
diff --git a/dlls/ntdll/om.c b/dlls/ntdll/om.c
index 4dbc964..9a573b9 100644
--- a/dlls/ntdll/om.c
+++ b/dlls/ntdll/om.c
@@ -43,7 +43,7 @@
*
* 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)
diff --git a/dlls/ole32/compositemoniker.c b/dlls/ole32/compositemoniker.c
index e6ee03c..dffc0ef 100644
--- a/dlls/ole32/compositemoniker.c
+++ b/dlls/ole32/compositemoniker.c
@@ -25,8 +25,9 @@
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 @@
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 @@
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 @@
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 @@
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 @@
}
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){
diff --git a/dlls/ole32/errorinfo.c b/dlls/ole32/errorinfo.c
index 0d36ff8..b5a63d5 100644
--- a/dlls/ole32/errorinfo.c
+++ b/dlls/ole32/errorinfo.c
@@ -43,9 +43,9 @@
/*
* 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,
diff --git a/dlls/ole32/filemoniker.c b/dlls/ole32/filemoniker.c
index 164341a..19de404 100644
--- a/dlls/ole32/filemoniker.c
+++ b/dlls/ole32/filemoniker.c
@@ -321,15 +321,23 @@
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);
diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c
index 7041ca2..e3617f7 100644
--- a/dlls/ole32/hglobalstream.c
+++ b/dlls/ole32/hglobalstream.c
@@ -261,7 +261,7 @@
}
/*
- * Start the stream at the begining.
+ * Start the stream at the beginning.
*/
newStream->currentPosition.s.HighPart = 0;
newStream->currentPosition.s.LowPart = 0;
diff --git a/dlls/ole32/stg_stream.c b/dlls/ole32/stg_stream.c
index 6fcd7b6..360f213 100644
--- a/dlls/ole32/stg_stream.c
+++ b/dlls/ole32/stg_stream.c
@@ -84,7 +84,7 @@
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;
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 061d484..15fc50a 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -1736,7 +1736,7 @@
/***********************************************************************
* FTP_SendType (internal)
*
- * Tell server type of data being transfered
+ * Tell server type of data being transferred
*
* RETURNS
* TRUE on success
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index db5fd67..0eeef91 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -1429,7 +1429,7 @@
* Parse next line in directory string listing
*
* RETURNS
- * Pointer to begining of next line
+ * Pointer to beginning of next line
* NULL on failure
*
*/
diff --git a/dlls/winmm/mciwave/mciwave.c b/dlls/winmm/mciwave/mciwave.c
index a5152f8..830ace6 100644
--- a/dlls/winmm/mciwave/mciwave.c
+++ b/dlls/winmm/mciwave/mciwave.c
@@ -744,7 +744,7 @@
}
- /* 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 @@
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
diff --git a/dlls/winmm/wineoss/midi.c b/dlls/winmm/wineoss/midi.c
index b1ae5a6..672dc0b 100644
--- a/dlls/winmm/wineoss/midi.c
+++ b/dlls/winmm/wineoss/midi.c
@@ -1425,7 +1425,7 @@
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++) {
diff --git a/files/file.c b/files/file.c
index 188f244..ec33637 100644
--- a/files/file.c
+++ b/files/file.c
@@ -1207,8 +1207,8 @@
* 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 @@
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;