summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-09-19 03:09:51 +0200
committerJan Holesovsky <kendy@suse.cz>2011-09-19 03:14:32 +0200
commit1b428599a3f9c2c1ddfad1fce101232ebc2b1fe5 (patch)
tree1379335ef314f1ff72be85f3bc679e6c6f868d28 /ucb/source
parent9804e0ae666fc051f4ee05e4b19901ae4dd00fa0 (diff)
Fix build with MinGW.
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/odma/odma_lib.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/ucb/source/ucp/odma/odma_lib.cxx b/ucb/source/ucp/odma/odma_lib.cxx
index 2272b23359fe..97282f38dbf6 100644
--- a/ucb/source/ucp/odma/odma_lib.cxx
+++ b/ucb/source/ucp/odma/odma_lib.cxx
@@ -84,13 +84,15 @@ namespace odma
::rtl::OUString sPath;
#ifdef WNT
+ OSL_ASSERT( sizeof( wchar_t ) == sizeof( sal_Unicode ) );
+
wchar_t system32[MAX_PATH];
UINT n = GetSystemDirectoryW( system32, MAX_PATH );
if (n == 0)
return sal_False;
- sPath = ::rtl::OUString( system32, n ) + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\\ODMA32.DLL"));
+ sPath = ::rtl::OUString( reinterpret_cast< const sal_Unicode* >( system32 ), n ) + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\\ODMA32.DLL"));
#endif
#ifdef UNX