Skip to content

Commit a873589

Browse files
author
James Forshaw
committed
Fix for code generation issue.
1 parent 2d8854f commit a873589

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NtApiDotNet/Win32/Rpc/RpcClientBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private RpcTypeDescriptor GetBogusArrayTypeDescriptor(NdrBogusArrayTypeReference
228228
CodeTypeReference real_element_type = element_type.CodeType;
229229
CodeTypeReference generic_type = null;
230230

231-
if (is_pointer)
231+
if (is_pointer && !is_string)
232232
{
233233
unmarshal_expr.Add(CodeGenUtils.GetPrimitive(element_type.PointerType == RpcPointerType.Full));
234234
generic_type = real_element_type;

0 commit comments

Comments
 (0)