From f51e6b7d913bbdb2e2cb2b9b5bbe12fdd3842dd8 Mon Sep 17 00:00:00 2001 From: gabest11 Date: Sat, 18 Apr 2009 09:31:16 +0000 Subject: [PATCH] LilyPad: fixed a crash under remote desktop, GetRawInputDeviceInfo may return -1, the buffer size it wants is around a megabyte and gets filled with junk, just ignoring it seems fine. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1004 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/LilyPad/RawInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/LilyPad/RawInput.cpp b/plugins/LilyPad/RawInput.cpp index 0fbde4513f..5593ad9761 100644 --- a/plugins/LilyPad/RawInput.cpp +++ b/plugins/LilyPad/RawInput.cpp @@ -262,7 +262,7 @@ void EnumRawInputDevices() { if (list && pGetRawInputDeviceList(list, &count, sizeof(RAWINPUTDEVICELIST))) { for (UINT i=0; i 0 && nameLen >= 3) { wcscpy(productID, instanceID); wchar_t *temp = 0;