mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:02:16 +00:00
[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:
parent
5b2ff8a3f9
commit
2d9c88e0c5
35 changed files with 108 additions and 94 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue