https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8bfab2d457da33934998d…
commit 8bfab2d457da33934998d2821d582278b94e597a
Author: Ender Ossel <EnderNator10(a)users.noreply.github.com>
AuthorDate: Thu Jun 6 18:01:48 2019 +0200
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 6 18:01:48 2019 +0200
Add an Alpha note for new users in the README (#1270)
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index 759059bb38b..ddfeb5e3675 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,8 @@ The ReactOS project, although currently focused on Windows Server 2003 compatibi
The code of ReactOS is licensed under [GNU GPL 2.0](https://github.com/reactos/reactos/blob/master/COPYING).
+***ReactOS is currently an Alpha quality operating system. This means that ReactOS is under heavy development, things may not work well and it can corrupt the data present on your hard disk. It is recommended to test ReactOS on a virtual machine or on a computer with no sensitive and credential data!***
+
## Building
[![appveyor.badge]][appveyor.link] [![travis.badge]][travis.link] [![rosbewin.badge]][rosbewin.link] [![rosbeunix.badge]][rosbeunix.link] [![coverity.badge]][coverity.link]
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fdfef818ef5dcb4d0132d…
commit fdfef818ef5dcb4d0132da8fe4e91eb00415db24
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Jun 6 16:33:44 2019 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 6 17:07:38 2019 +0200
[BROWSEUI] Fix CSHEnumClassesOfCategories::Initialize() parameters validation. (#1559)
CORE-11711
---
.../shellbars/CSHEnumClassesOfCategories.cpp | 30 ++++++++++++++--------
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/dll/win32/browseui/shellbars/CSHEnumClassesOfCategories.cpp b/dll/win32/browseui/shellbars/CSHEnumClassesOfCategories.cpp
index c2915a725fc..7f448a2f1ce 100644
--- a/dll/win32/browseui/shellbars/CSHEnumClassesOfCategories.cpp
+++ b/dll/win32/browseui/shellbars/CSHEnumClassesOfCategories.cpp
@@ -254,17 +254,16 @@ HRESULT CSHEnumClassesOfCategories::Initialize(ULONG cImplemented, CATID *pImple
if (!fDsa)
return E_FAIL;
- if (cRequired > 0 || cImplemented == (ULONG)-1)
- {
- FIXME("Implement required categories class enumeration\n");
- return E_NOTIMPL;
- }
-
- // Don't do anything if we have nothing
- if (cRequired == 0 && cImplemented == (ULONG)-1)
- return E_FAIL;
+ // Parameter validation:
+ // - We must have at least one category to manage.
+ // - The array pointers must not be NULL if there is a non-zero
+ // element count specified for them.
+ if (cImplemented == 0 && cRequired == 0)
+ return E_INVALIDARG;
+ if ((cImplemented && !pImplemented) || (cRequired && !pRequired))
+ return E_INVALIDARG;
- // For each implemented category, create a cache and add it to our local DSA
+ // For each implemented category, create a cache and add it to our local DSA.
for (i = 0; i < cImplemented; i++)
{
CComCatCachedCategory cachedCat;
@@ -273,6 +272,17 @@ HRESULT CSHEnumClassesOfCategories::Initialize(ULONG cImplemented, CATID *pImple
return hr;
cachedCat.WriteCacheToDSA(fDsa);
}
+
+ // TODO: Implement caching of the required categories.
+ if (cRequired > 0)
+ {
+ FIXME("Implement required categories class enumeration\n");
+
+ // Only fail in case we didn't look at the implemented categories.
+ if (cImplemented == 0)
+ return E_NOTIMPL;
+ }
+
return S_OK;
}
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3a98d96eac606d3fc258e…
commit 3a98d96eac606d3fc258ef298b80a71f00d96188
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Thu Jun 6 01:51:46 2019 +0200
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 6 01:51:46 2019 +0200
[LWIP] Fix src/core/init.c a bit (#1620)
Cherry-pick
http://git.savannah.nongnu.org/cgit/lwip.git/commit/src/core/init.c?id=c0b5…
---
sdk/lib/drivers/lwip/src/core/init.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/sdk/lib/drivers/lwip/src/core/init.c b/sdk/lib/drivers/lwip/src/core/init.c
index a7b15a776ab..691bdcaaf60 100644
--- a/sdk/lib/drivers/lwip/src/core/init.c
+++ b/sdk/lib/drivers/lwip/src/core/init.c
@@ -70,9 +70,6 @@
#if (!LWIP_UDP && LWIP_UDPLITE)
#error "If you want to use UDP Lite, you have to define LWIP_UDP=1 in your lwipopts.h"
#endif
-#if (!LWIP_UDP && LWIP_SNMP)
- #error "If you want to use SNMP, you have to define LWIP_UDP=1 in your lwipopts.h"
-#endif
#if (!LWIP_UDP && LWIP_DHCP)
#error "If you want to use DHCP, you have to define LWIP_UDP=1 in your lwipopts.h"
#endif
@@ -124,7 +121,7 @@
#if (LWIP_TCP && ((TCP_MAXRTX > 12) || (TCP_SYNMAXRTX > 12)))
#error "If you want to use TCP, TCP_MAXRTX and TCP_SYNMAXRTX must less or equal to 12 (due to tcp_backoff table), so, you have to reduce them in your lwipopts.h"
#endif
-#if (LWIP_TCP && TCP_LISTEN_BACKLOG && (TCP_DEFAULT_LISTEN_BACKLOG < 0) || (TCP_DEFAULT_LISTEN_BACKLOG > 0xff))
+#if (LWIP_TCP && TCP_LISTEN_BACKLOG && ((TCP_DEFAULT_LISTEN_BACKLOG < 0) || (TCP_DEFAULT_LISTEN_BACKLOG > 0xff)))
#error "If you want to use TCP backlog, TCP_DEFAULT_LISTEN_BACKLOG must fit into an u8_t"
#endif
#if (LWIP_NETIF_API && (NO_SYS==1))
@@ -166,7 +163,7 @@
#if (DNS_LOCAL_HOSTLIST && !DNS_LOCAL_HOSTLIST_IS_DYNAMIC && !(defined(DNS_LOCAL_HOSTLIST_INIT)))
#error "you have to define define DNS_LOCAL_HOSTLIST_INIT {{'host1', 0x123}, {'host2', 0x234}} to initialize DNS_LOCAL_HOSTLIST"
#endif
-#if PPP_SUPPORT && !PPPOS_SUPPORT & !PPPOE_SUPPORT
+#if PPP_SUPPORT && !PPPOS_SUPPORT && !PPPOE_SUPPORT
#error "PPP_SUPPORT needs either PPPOS_SUPPORT or PPPOE_SUPPORT turned on"
#endif
#if !LWIP_ETHERNET && (LWIP_ARP || PPPOE_SUPPORT)