sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.69k stars 638 forks source link

[DirectInput] ProductName not trimmed for devices (null characters at the end) #892

Closed peter249 closed 7 years ago

peter249 commented 7 years ago

Seems similar to issue #784.

ProductName has nulls as part of string.

Attached a small test program to reproduce the problem configured by NuGet Manager SharpDXTest.zip

Works if I build from sources in debug (VS2017pro, Win 10 Creators)

Fails if using NuGet package install.

xoofx commented 7 years ago

Fails if using NuGet package install.

Which one? The pre release version (4.0.0.pre-xxxx) or the current stable version (3.1.x)

peter249 commented 7 years ago

sorry, vers 3.1.1

xoofx commented 7 years ago

afair, I believe it was fixed in the meantime, try to use 4.0.0 pre nuget version.

peter249 commented 7 years ago

Thanks, the prerelease version 4.00-ci145 seems to work just fine.