https://git.reactos.org/?p=reactos.git;a=commitdiff;h=44a6987493e3c6e4c100a…
commit 44a6987493e3c6e4c100a5274aa6273277d3334a
Author: Joachim Henze <Joachim.Henze(a)reactos.org>
AuthorDate: Fri Mar 25 18:42:07 2022 +0100
Commit: Joachim Henze <Joachim.Henze(a)reactos.org>
CommitDate: Fri Mar 25 18:42:07 2022 +0100
[CRT_APITEST] wctomb.c Fix '\n.' typos CORE-18103
Addendum to 0.4.15-dev-139-g 3cb0bdaa0bd427cba21a8288ad0a4d37b2743037
Those were the only new cases introduced in the ReactOS source tree since
our last cleanup in that regard.
Ftr I think adding such finishing dots in debug prints are nonsense in general.
---
modules/rostests/apitests/crt/wctomb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/rostests/apitests/crt/wctomb.c b/modules/rostests/apitests/crt/wctomb.c
index 8048f56df13..8ea72cce10f 100644
--- a/modules/rostests/apitests/crt/wctomb.c
+++ b/modules/rostests/apitests/crt/wctomb.c
@@ -35,16 +35,16 @@ START_TEST(wctomb)
/* Do not give output to the caller */
Length = wctomb(NULL, 0);
- ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d\n.", Length);
+ ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d.\n", Length);
/* Do the same but expect a valid wide character argument this time */
Length = wctomb(NULL, wchSrc[0]);
- ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d\n.", Length);
+ ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d.\n", Length);
/* Don't return anything to the output even if conversion is impossible */
Length = wctomb(NULL, wchSrc[1]);
ok(errno == 0, "The error number (errno) should be 0 even though an invalid character in current locale is given but got %d.\n", errno);
- ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d\n.", Length);
+ ok(Length == 0, "Expected no characters to be converted (because the output argument is refused) but got %d.\n", Length);
/* Attempt to convert a character not possible in current locale */
Length = wctomb(chDest, wchSrc[1]);
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b66389c14078d1745d5a4…
commit b66389c14078d1745d5a415c7af1a195e8ececf1
Author: Joachim Henze <Joachim.Henze(a)reactos.org>
AuthorDate: Sun Mar 20 20:52:53 2022 +0100
Commit: Joachim Henze <Joachim.Henze(a)reactos.org>
CommitDate: Sun Mar 20 20:52:53 2022 +0100
[SERVICES] Restore Herves name and readd g_dwServiceBits CORE-18071
Partial revert of 0.4.15-dev-4274-g d31a55723797ce85f60a7fa1491d916a583b1167
As hbelusca explained the special character will warn only
once for each non-UTF8-file and not every time, unlike I anticipated.
The g_dwServiceBits is not important right now, but hpoussin expects it
to be a preparation step for making the stuff passed to the
function SetServiceBits() persistent
https://docs.microsoft.com/en-us/windows/win32/api/lmserver/nf-lmserver-set…
for (yet unknown) features to come.
---
base/system/services/database.c | 2 +-
base/system/services/rpcserver.c | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/base/system/services/database.c b/base/system/services/database.c
index ad790736177..d773a44e102 100644
--- a/base/system/services/database.c
+++ b/base/system/services/database.c
@@ -4,7 +4,7 @@
* FILE: base/system/services/database.c
* PURPOSE: Database control interface
* COPYRIGHT: Copyright 2002-2006 Eric Kohl
- * Copyright 2006 H. Poussineau <hpoussin(a)reactos.org>
+ * Copyright 2006 Herv� Poussineau <hpoussin(a)reactos.org>
* Copyright 2007 Ged Murphy <gedmurphy(a)reactos.org>
* Gregor Brunmar <gregor.brunmar(a)home.se>
*
diff --git a/base/system/services/rpcserver.c b/base/system/services/rpcserver.c
index 2c8e96d3b57..cad1f3b0487 100644
--- a/base/system/services/rpcserver.c
+++ b/base/system/services/rpcserver.c
@@ -4,7 +4,7 @@
* FILE: base/system/services/rpcserver.c
* PURPOSE: RPC server interface for the advapi32 calls
* COPYRIGHT: Copyright 2005-2006 Eric Kohl
- * Copyright 2006-2007 H. Poussineau <hpoussin(a)reactos.org>
+ * Copyright 2006-2007 Herv� Poussineau <hpoussin(a)reactos.org>
* Copyright 2007 Ged Murphy <gedmurphy(a)reactos.org>
*/
@@ -99,6 +99,7 @@ ScmServiceMapping = {SERVICE_READ,
SERVICE_EXECUTE,
SERVICE_ALL_ACCESS};
+DWORD g_dwServiceBits = 0;
/* FUNCTIONS ***************************************************************/
@@ -1893,14 +1894,20 @@ RI_ScSetServiceBitsW(
if (bSetBitsOn)
{
DPRINT("Old service bits: %08lx\n", pService->dwServiceBits);
+ DPRINT("Old global service bits: %08lx\n", g_dwServiceBits);
pService->dwServiceBits |= dwServiceBits;
+ g_dwServiceBits |= dwServiceBits;
DPRINT("New service bits: %08lx\n", pService->dwServiceBits);
+ DPRINT("New global service bits: %08lx\n", g_dwServiceBits);
}
else
{
DPRINT("Old service bits: %08lx\n", pService->dwServiceBits);
+ DPRINT("Old global service bits: %08lx\n", g_dwServiceBits);
pService->dwServiceBits &= ~dwServiceBits;
+ g_dwServiceBits &= ~dwServiceBits;
DPRINT("New service bits: %08lx\n", pService->dwServiceBits);
+ DPRINT("New global service bits: %08lx\n", g_dwServiceBits);
}
return ERROR_SUCCESS;