wfreerdp-server: string comparison fix

This commit is contained in:
Corey C 2013-03-12 18:53:27 -04:00
parent f83aa371aa
commit 6692b8faf9

View File

@ -50,7 +50,7 @@ BOOL wf_mirror_driver_find_display_device(wfInfo* wfi)
deviceKeyPrefixLength = _tcslen(DEVICE_KEY_PREFIX);
if (_tcsncmp(deviceInfo.DeviceKey, DEVICE_KEY_PREFIX, deviceKeyPrefixLength) == 0)
if (_tcsnicmp(deviceInfo.DeviceKey, DEVICE_KEY_PREFIX, deviceKeyPrefixLength) == 0)
{
deviceKeyLength = _tcslen(deviceInfo.DeviceKey) - deviceKeyPrefixLength;
wfi->deviceKey = (LPTSTR) malloc((deviceKeyLength + 1) * sizeof(TCHAR));