diff options
author | Caol?n McNamara <cmc@openoffice.org> | 2010-07-09 12:34:33 +0100 |
---|---|---|
committer | Caol?n McNamara <cmc@openoffice.org> | 2010-07-09 12:34:33 +0100 |
commit | 4b566610a736079b275f474a400e035246a41ca7 (patch) | |
tree | 337e06ed8ff28ab35175a29496608c4060360783 /sal | |
parent | e587dbf204b39022391e09eeeb2d25182a0e60b5 (diff) |
cmcfixes76: #i112656# fix up windows casts
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/process.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sal/osl/w32/process.cxx b/sal/osl/w32/process.cxx index 695c62db18bb..521ac6f76ad4 100644 --- a/sal/osl/w32/process.cxx +++ b/sal/osl/w32/process.cxx @@ -415,7 +415,9 @@ oslProcessError SAL_CALL osl_getEnvironment(rtl_uString *ustrVar, rtl_uString ** oslProcessError SAL_CALL osl_setEnvironment(rtl_uString *ustrVar, rtl_uString *ustrValue) { - if (SetEnvironmentVariableW(ustrVar->buffer, ustrValue->buffer)) + LPCWSTR lpName = reinterpret_cast<LPCWSTR>(ustrVar->buffer); + LPCWSTR lpValue = reinterpret_cast<LPCWSTR>(ustrValue->buffer); + if (SetEnvironmentVariableW(lpName, lpValue)) return osl_Process_E_None; return osl_Process_E_Unknown; } @@ -424,7 +426,8 @@ oslProcessError SAL_CALL osl_clearEnvironment(rtl_uString *ustrVar) { //If the second parameter is NULL, the variable is deleted from the current //process's environment. - if (SetEnvironmentVariableW(ustrVar->buffer, NULL)) + LPCWSTR lpName = reinterpret_cast<LPCWSTR>(ustrVar->buffer); + if (SetEnvironmentVariableW(lpName, NULL)) return osl_Process_E_None; return osl_Process_E_Unknown; } |