diff options
author | fvogel <fvogelnew1@free.fr> | 2020-05-24 10:51:11 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-05-24 10:51:11 (GMT) |
commit | 36975c88f715a973f160b5f6627d89965ebbb06e (patch) | |
tree | e4c83c543b7fac1578c1a1a6f3a032fc8f590a4c | |
parent | d6e49238a94a313ec7fa612387ad1c72211ea479 (diff) | |
download | tk-36975c88f715a973f160b5f6627d89965ebbb06e.zip tk-36975c88f715a973f160b5f6627d89965ebbb06e.tar.gz tk-36975c88f715a973f160b5f6627d89965ebbb06e.tar.bz2 |
Use S_OK for result instead of directly 0.
-rw-r--r-- | win/ttkWinXPTheme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/ttkWinXPTheme.c b/win/ttkWinXPTheme.c index c32d3cd..f91be9b 100644 --- a/win/ttkWinXPTheme.c +++ b/win/ttkWinXPTheme.c @@ -522,7 +522,7 @@ static void GenericElementSize( if (!(elementData->info->flags & IGNORE_THEMESIZE)) { if ((elementData->info->flags & FETCH_ONCE) && elementData->fetched) { size = elementData->origSize; - result = 0; /* non-negative is success */ + result = S_OK; } else { result = elementData->procs->GetThemePartSize( elementData->hTheme, @@ -538,7 +538,7 @@ static void GenericElementSize( *widthPtr = size.cx; *heightPtr = size.cy; } - if ((elementData->info->flags & FETCH_ONCE) && ! elementData->fetched) { + if ((elementData->info->flags & FETCH_ONCE) && !elementData->fetched) { elementData->origSize = size; elementData->fetched = 1; } |