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
027b5e48
Kaydet (Commit)
027b5e48
authored
Şub 03, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
reg2bin: truncate pre-existing output files
Change-Id: If74cccf8657c1b81467ee9c0dea29a749ca07455
üst
81a915f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
reg2bin.cxx
registry/tools/reg2bin.cxx
+8
-0
No files found.
registry/tools/reg2bin.cxx
Dosyayı görüntüle @
027b5e48
...
...
@@ -1395,6 +1395,14 @@ SAL_IMPLEMENT_MAIN() {
write32
(
f
,
0
);
// root map offset
write32
(
f
,
0
);
// root map size
sal_uInt64
off
=
writeMap
(
f
,
map
,
true
);
e2
=
f
.
setSize
(
getOffset
(
f
));
// truncate in case it already existed
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
std
::
cerr
<<
"Cannot set size of
\"
"
<<
f
.
getURL
()
<<
"
\"
, error code "
<<
+
e2
<<
"
\n
"
;
std
::
exit
(
EXIT_FAILURE
);
}
e2
=
f
.
setPos
(
osl_Pos_Absolut
,
8
);
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
std
::
cerr
...
...
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