[WS2_32]: Fix the crash in ws2_32 reported in CORE-12852, that happens when opening...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 5 Mar 2017 00:24:08 +0000 (00:24 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 5 Mar 2017 00:24:08 +0000 (00:24 +0000)
commitabc2d4d2284b78d1c71a1c26832aad4044300be5
treec20d3f566f867f89973371059f54cff7d867670d
parent0989caed380b49153d5014bc47e09037dcc33725
[WS2_32]: Fix the crash in ws2_32 reported in CORE-12852, that happens when opening e.g. Word 2010 for the first time (when it asks for registration):
- Check whether WsNcLoadProvider really succeeded in loading a provider in WsNcGetCatalogFromProviderId, and return appropriate error code.
- In WsNqLookupServiceBegin, initialize CatalogEntry to NULL prior to calling WsNcGetCatalogFromProviderId, and check for success or failure of WsNqAddProvider (and fail in accordance).

svn path=/trunk/; revision=74067
reactos/dll/win32/ws2_32/src/nscatalo.c
reactos/dll/win32/ws2_32/src/nsquery.c