Skip to content

Commit

Permalink
Fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 10, 2021
1 parent d59a926 commit 1dc9180
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hidapi/windows/hid.c
Expand Up @@ -197,7 +197,7 @@ IsWindowsVersionOrGreater(WORD wMajorVersion, WORD wMinorVersion, WORD wServiceP
VER_MINORVERSION, VER_GREATER_EQUAL ),
VER_SERVICEPACKMAJOR, VER_GREATER_EQUAL );

SDL_zero( osvi );
memset(&osvi, 0, sizeof(osvi));
osvi.dwOSVersionInfoSize = sizeof( osvi );
osvi.dwMajorVersion = wMajorVersion;
osvi.dwMinorVersion = wMinorVersion;
Expand Down Expand Up @@ -751,7 +751,6 @@ static int hid_write_timeout(hid_device *dev, const unsigned char *data, size_t
{
DWORD bytes_written;
BOOL res;
size_t stashed_length = length;
unsigned char *buf;

if (dev->use_hid_write_output_report) {
Expand Down

0 comments on commit 1dc9180

Please sign in to comment.