winpr-file: harden GetNamePipeFileDescriptor
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Wed, 7 May 2014 19:23:54 +0000 (21:23 +0200)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Wed, 7 May 2014 19:23:54 +0000 (21:23 +0200)
commite5fb854a499e39360908ccf0869105087be3866a
tree0761b9e20cc8a79f8a89615cc8e31c5ec5b3f6e7
parent58cd56c4889d4346c5e6fb8b94591658cdee3285
winpr-file: harden GetNamePipeFileDescriptor

Ensure that GetNamePipeFileDescriptor returns an error
if the supplied handle isn't a named pipe.
winpr/libwinpr/file/file.c