mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
Fixed compiler warnings
This commit is contained in:
parent
d59a926837
commit
1dc9180fb6
@ -197,7 +197,7 @@ IsWindowsVersionOrGreater(WORD wMajorVersion, WORD wMinorVersion, WORD wServiceP
|
|||||||
VER_MINORVERSION, VER_GREATER_EQUAL ),
|
VER_MINORVERSION, VER_GREATER_EQUAL ),
|
||||||
VER_SERVICEPACKMAJOR, VER_GREATER_EQUAL );
|
VER_SERVICEPACKMAJOR, VER_GREATER_EQUAL );
|
||||||
|
|
||||||
SDL_zero( osvi );
|
memset(&osvi, 0, sizeof(osvi));
|
||||||
osvi.dwOSVersionInfoSize = sizeof( osvi );
|
osvi.dwOSVersionInfoSize = sizeof( osvi );
|
||||||
osvi.dwMajorVersion = wMajorVersion;
|
osvi.dwMajorVersion = wMajorVersion;
|
||||||
osvi.dwMinorVersion = wMinorVersion;
|
osvi.dwMinorVersion = wMinorVersion;
|
||||||
@ -751,7 +751,6 @@ static int hid_write_timeout(hid_device *dev, const unsigned char *data, size_t
|
|||||||
{
|
{
|
||||||
DWORD bytes_written;
|
DWORD bytes_written;
|
||||||
BOOL res;
|
BOOL res;
|
||||||
size_t stashed_length = length;
|
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
|
|
||||||
if (dev->use_hid_write_output_report) {
|
if (dev->use_hid_write_output_report) {
|
||||||
|
Loading…
Reference in New Issue
Block a user