From 442b4225d3310599a8bc9107dc3f7b4153a286c4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 24 May 2010 21:34:22 +0200 Subject: Improve the MS-Windows installer. --- src/os_mswin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/os_mswin.c') diff --git a/src/os_mswin.c b/src/os_mswin.c index 2e692a70e..562dca1aa 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -787,7 +787,7 @@ check_str_len(char_u *str) /* get length from str to end of page */ long_u pageLength = si.dwPageSize - (dwStr - strPage); - for (p = str; !IsBadReadPtr(p, pageLength); + for (p = str; !IsBadReadPtr(p, (UINT)pageLength); p += pageLength, pageLength = si.dwPageSize) for (i = 0; i < pageLength; ++i, ++length) if (p[i] == NUL) @@ -1779,7 +1779,7 @@ swap_me(COLORREF colorref) } /* Attempt to make this work for old and new compilers */ -#if _MSC_VER < 1300 +#if !defined(_MSC_VER) || (_MSC_VER < 1300) || !defined(INT_PTR) # define PDP_RETVAL BOOL #else # define PDP_RETVAL INT_PTR -- cgit v1.2.1