https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9f784c65a22f16bd90415…
commit 9f784c65a22f16bd904152bb5f162c5f86c428dc
Author: Ratin Gao <ratin(a)knsoft.org>
AuthorDate: Fri Nov 1 18:50:09 2024 +0800
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Nov 1 11:50:09 2024 +0100
[REACTOS] Fix 'writting' typos (#7484)
3rd-party files are not modified.
---
modules/rosapps/applications/sysutils/pedump/pedump.c | 2 +-
modules/rosapps/applications/sysutils/regexpl/ShellCommandValue.cpp | 2 +-
modules/rostests/tests/sertest/sertest.c | 2 +-
sdk/lib/drivers/copysup/copysup.c | 4 ++--
sdk/lib/drivers/rdbsslib/rdbss.c | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/rosapps/applications/sysutils/pedump/pedump.c b/modules/rosapps/applications/sysutils/pedump/pedump.c
index 88706cf0c8b..f246404989c 100644
--- a/modules/rosapps/applications/sysutils/pedump/pedump.c
+++ b/modules/rosapps/applications/sysutils/pedump/pedump.c
@@ -3906,7 +3906,7 @@ GetSeparateDebugHeader (
// I tried to immitate the output of w32dasm disassembler.
// which is a pretty good program.
// but I am disappointed with this program and I myself
-// am writting a disassembler.
+// am writing a disassembler.
// This PEdump program is a byproduct of that project.
// so enjoy this program and I hope we will have a little more
// knowledge on windows programming world.
diff --git a/modules/rosapps/applications/sysutils/regexpl/ShellCommandValue.cpp b/modules/rosapps/applications/sysutils/regexpl/ShellCommandValue.cpp
index 7db957414e2..cf97c0e9640 100644
--- a/modules/rosapps/applications/sysutils/regexpl/ShellCommandValue.cpp
+++ b/modules/rosapps/applications/sysutils/regexpl/ShellCommandValue.cpp
@@ -390,7 +390,7 @@ CheckValueArgument:
DWORD dwBytesWritten;
if (!WriteFile(hFile,pDataBuffer,dwValueSize,&dwBytesWritten,NULL))
{
- rConsole.Write(_T("Error writting file.\n"));
+ rConsole.Write(_T("Error writing file.\n"));
VERIFY(CloseHandle(hFile));
goto SkipValueCommand;
}
diff --git a/modules/rostests/tests/sertest/sertest.c b/modules/rostests/tests/sertest/sertest.c
index f56f36ec83f..1fd70044815 100644
--- a/modules/rostests/tests/sertest/sertest.c
+++ b/modules/rostests/tests/sertest/sertest.c
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
rxBuffer[i] = 0xFF;
}
printf("\n");
- printf("Writting transmit buffer to the serial port\n");
+ printf("Writing transmit buffer to the serial port\n");
bResult = WriteFile(hPort, txBuffer, BUFSIZE, &dwNumWritten, NULL);
if (!bResult) {
printf("ERROR: failed to write to the serial port: %lx\n", (DWORD)bResult);
diff --git a/sdk/lib/drivers/copysup/copysup.c b/sdk/lib/drivers/copysup/copysup.c
index 69d7da144a3..5828c822cda 100644
--- a/sdk/lib/drivers/copysup/copysup.c
+++ b/sdk/lib/drivers/copysup/copysup.c
@@ -330,7 +330,7 @@ FsRtlCopyWrite2(
return FALSE;
}
- /* And that we're not writting beyond allocation size */
+ /* And that we're not writing beyond allocation size */
if (Fcb->AllocationSize.QuadPart < LastOffset.QuadPart)
{
ExReleaseResourceLite(Fcb->Resource);
@@ -561,7 +561,7 @@ FsRtlCopyWrite2(
return FALSE;
}
- /* And that we're not writting beyond allocation size
+ /* And that we're not writing beyond allocation size
* and that we're not going above 4GB
*/
if ((Fcb->AllocationSize.LowPart < LastOffset.LowPart) ||
diff --git a/sdk/lib/drivers/rdbsslib/rdbss.c b/sdk/lib/drivers/rdbsslib/rdbss.c
index 4fe01867172..ba6839b298b 100644
--- a/sdk/lib/drivers/rdbsslib/rdbss.c
+++ b/sdk/lib/drivers/rdbsslib/rdbss.c
@@ -4047,7 +4047,7 @@ RxCommonWrite(
return STATUS_INVALID_PARAMETER;
}
- /* Are we writting to EOF? */
+ /* Are we writing to EOF? */
WriteToEof = ((ByteOffset.LowPart == FILE_WRITE_TO_END_OF_FILE) && (ByteOffset.HighPart == -1));
/* FIXME: validate length/offset */
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3bb1e644082b59f0d8d18…
commit 3bb1e644082b59f0d8d18dc0cf529cae31e2fb70
Author: Doug Lyons <douglyons(a)douglyons.com>
AuthorDate: Sat Oct 26 16:44:39 2024 -0500
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Oct 26 16:44:39 2024 -0500
[NTGDI:FREETYPE] Account for non-breaking spaces in x-dim of IntExtTextOutW (#7479)
CORE-19768
Follow up of PR #7274. This stop WARN's from FF 28 as well.
* Make del and nbsp const's based on reviewer comments.
---
win32ss/gdi/ntgdi/freetype.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 5a6f8479bbc..8deb9e6820b 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -6795,7 +6795,8 @@ IntExtTextOutW(
FONT_CACHE_ENTRY Cache;
FT_Matrix mat;
BOOL bNoTransform;
- DWORD ch0, ch1, etx = 3; // etx is ASCII End of Text
+ DWORD ch0, ch1;
+ const DWORD del = 0x7f, nbsp = 0xa0; // DEL is ASCII DELETE and nbsp is a non-breaking space
FONTLINK_CHAIN Chain;
SIZE spaceWidth;
@@ -7063,13 +7064,14 @@ IntExtTextOutW(
bitSize.cx = realglyph->bitmap.width;
bitSize.cy = realglyph->bitmap.rows;
- /* Do chars other than space and etx have a bitSize.cx of zero? */
- if (ch0 != L' ' && ch0 != etx && bitSize.cx == 0)
+ /* Do chars > space & not DEL & not nbsp have a bitSize.cx of zero? */
+ if (ch0 > L' ' && ch0 != del && ch0 != nbsp && bitSize.cx == 0)
DPRINT1("WARNING: WChar 0x%04x has a bitSize.cx of zero\n", ch0);
- /* Don't ignore spaces when computing offset.
+ /* Don't ignore spaces or non-breaking spaces when computing offset.
* This completes the fix of CORE-11787. */
- if ((pdcattr->flTextAlign & TA_UPDATECP) && ch0 == L' ' && bitSize.cx == 0)
+ if ((pdcattr->flTextAlign & TA_UPDATECP) && bitSize.cx == 0 &&
+ (ch0 == L' ' || ch0 == nbsp)) // Space chars needing x-dim widths
{
IntUnLockFreeType();
/* Get the width of the space character */