changeset 7000:89337c37a40d

Fix build error caused by fix for RT-36692
author kcr
date Tue, 13 May 2014 06:29:29 -0700
parents 8ffd4827acf5
children 98ac4a1f45ee
files modules/graphics/src/main/native-glass/win/GlassApplication.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/win/GlassApplication.cpp	Tue May 13 08:49:08 2014 -0400
+++ b/modules/graphics/src/main/native-glass/win/GlassApplication.cpp	Tue May 13 06:29:29 2014 -0700
@@ -129,7 +129,7 @@
     contrastInfo.cbSize = sizeof(HIGHCONTRAST);
     ::SystemParametersInfo(SPI_GETHIGHCONTRAST, sizeof(HIGHCONTRAST), &contrastInfo, 0);
     if (contrastInfo.dwFlags & HCF_HIGHCONTRASTON) {
-        size_t length = wcslen(contrastInfo.lpszDefaultScheme);
+        jsize length = (jsize) wcslen(contrastInfo.lpszDefaultScheme);
         return env->NewString((jchar*)contrastInfo.lpszDefaultScheme, length);
     }
     return NULL;