[WIN32K] Fix 64 bit issues (#420)

- Fix ULONG/SIZE_T issues
- Use LOWORD/HIWORD
- Change a struct member to HANDLE
- Implement lstrlenW helper function
This commit is contained in:
Timo Kreuzer 2018-03-18 15:53:52 +01:00 committed by GitHub
parent 5b2ff8a3f9
commit 2d9c88e0c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 108 additions and 94 deletions

View file

@ -163,11 +163,7 @@ static void TEXT_Ellipsify (HDC hdc, WCHAR *str, unsigned int max_len,
{
unsigned int len_ellipsis;
unsigned int lo, mid, hi;
#ifdef _WIN32K_
len_ellipsis = wcslen (ELLIPSISW);
#else
len_ellipsis = strlenW (ELLIPSISW);
#endif
if (len_ellipsis > max_len) len_ellipsis = max_len;
if (*len_str > max_len - len_ellipsis)
*len_str = max_len - len_ellipsis;
@ -274,11 +270,7 @@ static void TEXT_PathEllipsify (HDC hdc, WCHAR *str, unsigned int max_len,
int len_trailing;
int len_under;
WCHAR *lastBkSlash, *lastFwdSlash, *lastSlash;
#ifdef _WIN32K_
len_ellipsis = wcslen (ELLIPSISW);
#else
len_ellipsis = strlenW (ELLIPSISW);
#endif
if (!max_len) return;
if (len_ellipsis >= max_len) len_ellipsis = max_len - 1;
if (*len_str + len_ellipsis >= max_len)