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
c77110b4
Kaydet (Commit)
c77110b4
authored
May 03, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: ignoring return value of fwrite
Change-Id: I289564b8f41bbae976853aa3994751d3092ff44d
üst
2033e7c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
rscdb.cxx
rsc/source/parser/rscdb.cxx
+8
-4
No files found.
rsc/source/parser/rscdb.cxx
Dosyayı görüntüle @
c77110b4
...
...
@@ -36,6 +36,7 @@
#include <tools/fsys.hxx>
#include <tools/rc.h>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <sal/macros.h>
// Programmabhaengige Includes.
...
...
@@ -528,7 +529,8 @@ IMPL_LINK_INLINE_END( RscEnumerateObj, CallBackWriteHxx, ObjNode *, pObjNode )
|* RscEnumerateObj :: WriteRcFile
|*
*************************************************************************/
void
RscEnumerateObj
::
WriteRcFile
(
RscWriteRc
&
rMem
,
FILE
*
fOut
){
void
RscEnumerateObj
::
WriteRcFile
(
RscWriteRc
&
rMem
,
FILE
*
fOut
)
{
// Definition der Struktur, aus denen die Resource aufgebaut ist
/*
struct RSHEADER_TYPE{
...
...
@@ -568,8 +570,8 @@ void RscEnumerateObj :: WriteRcFile( RscWriteRc & rMem, FILE * fOut ){
//Position wurde vorher in Tabelle geschrieben
fwrite
(
rMem
.
GetBuffer
(),
rMem
.
Size
(),
1
,
fOut
);
bool
bSuccess
=
(
1
==
fwrite
(
rMem
.
GetBuffer
(),
rMem
.
Size
(),
1
,
fOut
)
);
SAL_WARN_IF
(
!
bSuccess
,
"rsc"
,
"short write"
);
};
class
RscEnumerateRef
...
...
@@ -721,7 +723,9 @@ void RscTypCont :: WriteSrc( FILE * fOutput, sal_uLong nFileKey,
RscEnumerateRef
aEnumRef
(
this
,
pRoot
,
fOutput
);
unsigned
char
aUTF8BOM
[
3
]
=
{
0xef
,
0xbb
,
0xbf
};
fwrite
(
aUTF8BOM
,
sizeof
(
unsigned
char
),
SAL_N_ELEMENTS
(
aUTF8BOM
),
fOutput
);
size_t
nItems
=
SAL_N_ELEMENTS
(
aUTF8BOM
);
bool
bSuccess
=
(
nItems
==
fwrite
(
aUTF8BOM
,
1
,
nItems
,
fOutput
));
SAL_WARN_IF
(
!
bSuccess
,
"rsc"
,
"short write"
);
if
(
bName
)
{
WriteInc
(
fOutput
,
nFileKey
);
...
...
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