summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-08-30 11:54:42 +0300
committerTor Lillqvist <tml@iki.fi>2013-08-30 12:13:45 +0300
commit9c1be36c41a7006760ddcd73eec96a82a87316f2 (patch)
tree24480a1c262e72b0bebce2ae072506d1c31a5302 /sal
parent760bba09f02aa1a2b07289a55c73f6a8b80ca4fc (diff)
WaE: possible loss of data
Change-Id: I2a1d47cc3eca40ddd7e9502ffe71337ab2268858
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/w32/security.c b/sal/osl/w32/security.c
index f72132e09a96..84d01bb72f18 100644
--- a/sal/osl/w32/security.c
+++ b/sal/osl/w32/security.c
@@ -661,7 +661,7 @@ static sal_Bool GetSpecialFolder(rtl_uString **strPath, int nFolder)
{
if (pSHGetSpecialFolderPathA(GetActiveWindow(), PathA, nFolder, TRUE))
{
- rtl_string2UString( strPath, PathA, strlen(PathA), osl_getThreadTextEncoding(), OUSTRING_TO_OSTRING_CVTFLAGS);
+ rtl_string2UString( strPath, PathA, (sal_Int32) strlen(PathA), osl_getThreadTextEncoding(), OUSTRING_TO_OSTRING_CVTFLAGS);
OSL_ASSERT(*strPath != NULL);
bRet = sal_True;
}
@@ -747,7 +747,7 @@ static sal_Bool GetSpecialFolder(rtl_uString **strPath, int nFolder)
if (_access(PathA, 0) < 0)
CreateDirectoryA(PathA, NULL);
- rtl_string2UString( strPath, PathA, strlen(PathA), osl_getThreadTextEncoding(), OUSTRING_TO_OSTRING_CVTFLAGS);
+ rtl_string2UString( strPath, PathA, (sal_Int32) strlen(PathA), osl_getThreadTextEncoding(), OUSTRING_TO_OSTRING_CVTFLAGS);
OSL_ASSERT(*strPath != NULL);
bRet = sal_True;
}