sysmailclient.cxx (ae77b8ca) sysmailclient.cxx (ff3f4ebc)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 115 unchanged lines hidden (view full) ---

124
125 /** @internal
126 look if an alternative program is configured
127 which should be used as senddoc executable */
128 static rtl::OUString getAlternativeSenddocUrl()
129 {
130 rtl::OUString altSenddocUrl;
131 HKEY hkey;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 115 unchanged lines hidden (view full) ---

124
125 /** @internal
126 look if an alternative program is configured
127 which should be used as senddoc executable */
128 static rtl::OUString getAlternativeSenddocUrl()
129 {
130 rtl::OUString altSenddocUrl;
131 HKEY hkey;
132 LONG lret = RegOpenKeyW(HKEY_CURRENT_USER, L"Software\\OpenOffice.org\\SendAsEMailClient", &hkey);
132 LONG lret = RegOpenKeyW(HKEY_CURRENT_USER, L"Software\\Apache OpenOffice\\SendAsEMailClient", &hkey);
133 if (lret == ERROR_SUCCESS)
134 {
135 wchar_t buff[MAX_PATH];
136 LONG sz = sizeof(buff);
137 lret = RegQueryValueW(hkey, NULL, buff, &sz);
138 if (lret == ERROR_SUCCESS)
139 {
140 osl::FileBase::getFileURLFromSystemPath(reinterpret_cast<const sal_Unicode*>(buff), altSenddocUrl);

--- 208 unchanged lines hidden ---
133 if (lret == ERROR_SUCCESS)
134 {
135 wchar_t buff[MAX_PATH];
136 LONG sz = sizeof(buff);
137 lret = RegQueryValueW(hkey, NULL, buff, &sz);
138 if (lret == ERROR_SUCCESS)
139 {
140 osl::FileBase::getFileURLFromSystemPath(reinterpret_cast<const sal_Unicode*>(buff), altSenddocUrl);

--- 208 unchanged lines hidden ---