Skip to content

Commit

Permalink
GIMX i386 does not detect mouse and keyboard #485
Browse files Browse the repository at this point in the history
  • Loading branch information
matlo committed Oct 22, 2017
1 parent bab65bb commit 88022a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/gasync/src/input/windows/rawinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ static SP_DEVINFO_DATA * get_devinfo_data(const char * instanceId) {
static char * utf16le_to_utf8(const unsigned char * inbuf, size_t insize)
{
char * outbuf = NULL;
int outsize = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR ) inbuf, insize, NULL, 0, NULL, NULL);
int outsize = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR ) inbuf, -1, NULL, 0, NULL, NULL);
if (outsize != 0) {
outbuf = (char*) malloc(outsize);
if (outbuf != NULL) {
int res = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR ) inbuf, insize, outbuf, outsize, NULL, NULL);
int res = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR ) inbuf, -1, outbuf, outsize, NULL, NULL);
if (res == 0) {
PRINT_ERROR_GETLASTERROR("WideCharToMultiByte")
free(outbuf);
Expand Down

0 comments on commit 88022a9

Please sign in to comment.