Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
143b3a2f
Kaydet (Commit)
143b3a2f
authored
Tem 17, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:useuniqueptr: shell (clang-cl)
Change-Id: Icf6cd85f9e4792ad09dd1a97a8802da13da942c2
üst
5e790f69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
COMOpenDocuments.cxx
shell/source/win32/spsupp/COMOpenDocuments.cxx
+4
-4
No files found.
shell/source/win32/spsupp/COMOpenDocuments.cxx
Dosyayı görüntüle @
143b3a2f
...
...
@@ -10,6 +10,7 @@
#include <sal/config.h>
#include <cstring>
#include <vector>
#include "COMOpenDocuments.hpp"
#include "spsuppServ.hpp"
...
...
@@ -62,13 +63,12 @@ HRESULT LOStart(const wchar_t* sModeArg, const wchar_t* sFilePath, bool bDoSecur
0
,
nullptr
);
size_t
nBufSize
=
wcslen
(
sMsgBuf
)
+
100
;
wchar_t
*
sDisplayBuf
=
new
wchar_t
[
nBufSize
]
;
swprintf
(
sDisplayBuf
,
nBufSize
,
L"Could not start LibreOffice. Error is 0x%08X:
\n\n
%s"
,
dwError
,
sMsgBuf
);
std
::
vector
<
wchar_t
>
sDisplayBuf
(
nBufSize
)
;
swprintf
(
sDisplayBuf
.
data
()
,
nBufSize
,
L"Could not start LibreOffice. Error is 0x%08X:
\n\n
%s"
,
dwError
,
sMsgBuf
);
LocalFree
(
sMsgBuf
);
// Report the error to user and return error
MessageBoxW
(
nullptr
,
sDisplayBuf
,
nullptr
,
MB_ICONERROR
);
delete
[](
sDisplayBuf
);
MessageBoxW
(
nullptr
,
sDisplayBuf
.
data
(),
nullptr
,
MB_ICONERROR
);
return
HRESULT_FROM_WIN32
(
dwError
);
}
CloseHandle
(
pi
.
hProcess
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment