Skip to content

Commit

Permalink
Fix UDT type name
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksimek committed Mar 8, 2014
1 parent 797578f commit 1d9a13b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data-type.coffee
Expand Up @@ -668,7 +668,7 @@ TYPE =
buffer.writeUInt8 0
0xF0:
type: 'UDTTYPE'
name: 'UserDefinedType'
name: 'UDT'
hasUDTInfo: true

# Types not (yet) supported
Expand Down
2 changes: 1 addition & 1 deletion src/value-parser.coffee
Expand Up @@ -206,7 +206,7 @@ parse = (buffer, metaData) ->
value = guidParser.arrayToGuid( buffer.readArray(0x10) )
else
throw new Error(sprintf('Unsupported guid size %d at offset 0x%04X', dataLength - 1, buffer.position))
when 'UserDefinedType'
when 'UDT'
value = readMaxBinary(buffer)
else
throw new Error(sprintf('Unrecognised type %s at offset 0x%04X', type.name, buffer.position))
Expand Down

0 comments on commit 1d9a13b

Please sign in to comment.