Author: spetreolle
Date: Sun Mar 22 20:35:21 2015
New Revision: 66859
URL: http://svn.reactos.org/svn/reactos?rev=66859&view=rev
Log:
[IPHLPAPI]
Add checks for the family.
Modified:
trunk/reactos/dll/win32/iphlpapi/address.c
Modified: trunk/reactos/dll/win32/iphlpapi/address.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/address…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/address.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/address.c [iso-8859-1] Sun Mar 22 20:35:21 2015
@@ -290,15 +290,24 @@
if (!pOutBufLen)
return ERROR_INVALID_PARAMETER;
- if ((Family == AF_INET6) || (Family == AF_UNSPEC))
- {
- /* One day maybe... */
- FIXME("IPv6 is not supported in ReactOS!\n");
- if (Family == AF_INET6)
- {
+ switch(Family)
+ {
+ case AF_INET:
+ break;
+ case AF_INET6:
+ /* One day maybe... */
+ FIXME("IPv6 is not supported in ReactOS!\n");
/* We got nothing to say in this case */
return ERROR_NO_DATA;
- }
+ break;
+ case AF_UNSPEC:
+ WARN("IPv6 addresses ignored, IPv4 only\n");
+ Family = AF_INET;
+ break;
+ default:
+ ERR("Invalid family 0x%x\n", Family);
+ return ERROR_INVALID_PARAMETER;
+ break;
}
RemainingSize = *pOutBufLen;
Author: khornicek
Date: Sun Mar 22 12:08:09 2015
New Revision: 66854
URL: http://svn.reactos.org/svn/reactos?rev=66854&view=rev
Log:
[WIN32K]
- set the devmode size for ENUM_REGISTRY_SETTINGS case in NtUserEnumDisplaySettings so it gets copied back to caller later
Modified:
trunk/reactos/win32ss/user/ntuser/display.c
Modified: trunk/reactos/win32ss/user/ntuser/display.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/displa…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/display.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/display.c [iso-8859-1] Sun Mar 22 12:08:09 2015
@@ -602,6 +602,7 @@
/* Get the registry settings */
Status = UserEnumRegistryDisplaySettings(pustrDevice, &dmReg);
pdm = &dmReg;
+ pdm->dmSize = sizeof(DEVMODEW);
}
else if (iModeNum == ENUM_CURRENT_SETTINGS)
{