mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Fix Win32 warnings
This commit is contained in:
@@ -827,7 +827,7 @@ static void config_read_properties(config_section_definition **currentSection, c
|
||||
static bool config_read_enum(void *dest, int destSize, const utf8 *key, int keySize, config_enum_definition *enumDefinitions)
|
||||
{
|
||||
while (enumDefinitions->key != NULL) {
|
||||
if (strlen(enumDefinitions->key) == keySize && _strnicmp(enumDefinitions->key, key, keySize) == 0) {
|
||||
if (strlen(enumDefinitions->key) == (size_t)keySize && _strnicmp(enumDefinitions->key, key, keySize) == 0) {
|
||||
memcpy(dest, &enumDefinitions->value.value_uint32, destSize);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ static bool OnCrash(const wchar_t * dumpPath,
|
||||
files[numFiles++] = ILCreateFromPathW(saveFilePath);
|
||||
}
|
||||
if (pidl != nullptr) {
|
||||
HRESULT result = SHOpenFolderAndSelectItems(pidl, numFiles, (LPCITEMIDLIST *)files, 0);
|
||||
SHOpenFolderAndSelectItems(pidl, numFiles, (LPCITEMIDLIST *)files, 0);
|
||||
ILFree(pidl);
|
||||
for (uint32 i = 0; i < numFiles; i++)
|
||||
{
|
||||
|
||||
@@ -570,7 +570,7 @@ static void window_track_list_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi,
|
||||
} else {
|
||||
// Build custom track item
|
||||
rct_string_id stringId;
|
||||
if (listIndex == w->selected_list_item) {
|
||||
if (listIndex == (size_t)w->selected_list_item) {
|
||||
// Highlight
|
||||
gfx_filter_rect(dpi, x, y, w->width, y + 9, PALETTE_DARKEN_1);
|
||||
stringId = STR_WINDOW_COLOUR_2_STRINGID;
|
||||
@@ -587,7 +587,7 @@ static void window_track_list_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi,
|
||||
for (size_t i = 0; i < _trackDesignsCount; i++, listIndex++) {
|
||||
if (y + 10 >= dpi->y && y < dpi->y + dpi->height) {
|
||||
rct_string_id stringId;
|
||||
if (listIndex == w->selected_list_item) {
|
||||
if (listIndex == (size_t)w->selected_list_item) {
|
||||
// Highlight
|
||||
gfx_filter_rect(dpi, x, y, w->width, y + 9, PALETTE_DARKEN_1);
|
||||
stringId = STR_WINDOW_COLOUR_2_STRINGID;
|
||||
|
||||
Reference in New Issue
Block a user