summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-03 23:49:10 -0400
committermidipix <writeonce@midipix.org>2016-07-03 23:51:19 -0400
commite3982b40263c8cc20bfa79e707380e887928f8af (patch)
tree6da1775239e58d7b4e5316d342ed4344af91fcd8 /src
parent41d4170bd4c53e49b413569c7ef332d9919c1409 (diff)
downloadntapi-e3982b40263c8cc20bfa79e707380e887928f8af.tar.bz2
ntapi-e3982b40263c8cc20bfa79e707380e887928f8af.tar.xz
__ntapi_tt_port_name_from_attributes(): removed excess array elements.
Diffstat (limited to 'src')
-rw-r--r--src/port/ntapi_port_name_helper.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/port/ntapi_port_name_helper.c b/src/port/ntapi_port_name_helper.c
index 7ab4d41..bd55f5b 100644
--- a/src/port/ntapi_port_name_helper.c
+++ b/src/port/ntapi_port_name_helper.c
@@ -13,13 +13,13 @@
typedef wchar16_t __port_service_prefix[6];
static const __port_service_prefix __port_service_null = {0};
-static const __port_service_prefix __port_service_prefixes[6][NT_PORT_TYPE_CAP][NT_PORT_SUBTYPE_CAP] = {
- {{{'s','v','c','a','n','y'}}},
- {{{'n','t','c','t','t','y'}}},
- {{{'v','m','o','u','n','t'}}},
- {{{'d','a','e','m','o','n'}}},
- {{{'s','y','m','l','n','k'}}},
- {{{'n','t','p','r','o','c'}}}};
+static const __port_service_prefix __port_service_prefixes[NT_PORT_TYPE_CAP][NT_PORT_SUBTYPE_CAP] = {
+ {{'s','v','c','a','n','y'}},
+ {{'n','t','c','t','t','y'}},
+ {{'v','m','o','u','n','t'}},
+ {{'d','a','e','m','o','n'}},
+ {{'s','y','m','l','n','k'}},
+ {{'n','t','p','r','o','c'}}};
static const nt_guid __port_guids[NT_PORT_TYPE_CAP][NT_PORT_SUBTYPE_CAP] = {
{NT_PORT_GUID_DEFAULT},
@@ -136,7 +136,7 @@ void __stdcall __ntapi_tt_port_name_from_attributes(
if (attr && (attr->type < NT_PORT_TYPE_CAP) && (attr->subtype < NT_PORT_SUBTYPE_CAP))
__ntapi->tt_memcpy_utf16(
name->svc_prefix,
- &(__port_service_prefixes[attr->type][attr->subtype][0][0]),
+ __port_service_prefixes[attr->type][attr->subtype],
sizeof(name->svc_prefix));
else
__ntapi->tt_memcpy_utf16(