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
542c93d1
Kaydet (Commit)
542c93d1
authored
Eki 01, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document that this is known as StructuredStorageDirectoryEntry in the spec
üst
6017ef25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
stgelem.cxx
sot/source/sdstor/stgelem.cxx
+10
-4
stgelem.hxx
sot/source/sdstor/stgelem.hxx
+2
-1
No files found.
sot/source/sdstor/stgelem.cxx
Dosyayı görüntüle @
542c93d1
...
@@ -40,6 +40,8 @@
...
@@ -40,6 +40,8 @@
#include "stgdir.hxx"
#include "stgdir.hxx"
#include "stgio.hxx"
#include "stgio.hxx"
static
const
sal_uInt16
nMaxLegalStr
=
31
;
static
sal_uInt8
cStgSignature
[
8
]
=
{
0xD0
,
0xCF
,
0x11
,
0xE0
,
0xA1
,
0xB1
,
0x1A
,
0xE1
};
static
sal_uInt8
cStgSignature
[
8
]
=
{
0xD0
,
0xCF
,
0x11
,
0xE0
,
0xA1
,
0xB1
,
0x1A
,
0xE1
};
////////////////////////////// struct ClsId /////////////////////////////
////////////////////////////// struct ClsId /////////////////////////////
...
@@ -255,7 +257,7 @@ sal_Bool StgEntry::SetName( const String& rName )
...
@@ -255,7 +257,7 @@ sal_Bool StgEntry::SetName( const String& rName )
{
{
// I don't know the locale, so en_US is hopefully fine
// I don't know the locale, so en_US is hopefully fine
aName
=
ToUpperUnicode
(
rName
);
aName
=
ToUpperUnicode
(
rName
);
aName
.
Erase
(
31
);
aName
.
Erase
(
nMaxLegalStr
);
int
i
;
int
i
;
for
(
i
=
0
;
i
<
aName
.
Len
()
&&
i
<
32
;
i
++
)
for
(
i
=
0
;
i
<
aName
.
Len
()
&&
i
<
32
;
i
++
)
...
@@ -346,9 +348,13 @@ sal_Bool StgEntry::Load( const void* pFrom )
...
@@ -346,9 +348,13 @@ sal_Bool StgEntry::Load( const void* pFrom )
sal_uInt16
n
=
nNameLen
;
sal_uInt16
n
=
nNameLen
;
if
(
n
)
if
(
n
)
n
=
(
n
>>
1
)
-
1
;
n
=
(
n
>>
1
)
-
1
;
if
(
n
>
31
||
(
nSize
<
0
&&
cType
!=
STG_STORAGE
)
)
if
(
n
>
nMaxLegalStr
)
return
sal_False
;
if
(
nSize
<
0
&&
cType
!=
STG_STORAGE
)
{
{
// the size makes no sen
c
e for the substorage
// the size makes no sen
s
e for the substorage
// TODO/LATER: actually the size should be an unsigned value, but in this case it would mean a stream of more than 2Gb
// TODO/LATER: actually the size should be an unsigned value, but in this case it would mean a stream of more than 2Gb
return
sal_False
;
return
sal_False
;
}
}
...
@@ -356,7 +362,7 @@ sal_Bool StgEntry::Load( const void* pFrom )
...
@@ -356,7 +362,7 @@ sal_Bool StgEntry::Load( const void* pFrom )
aName
=
String
(
nName
,
n
);
aName
=
String
(
nName
,
n
);
// I don't know the locale, so en_US is hopefully fine
// I don't know the locale, so en_US is hopefully fine
aName
=
ToUpperUnicode
(
aName
);
aName
=
ToUpperUnicode
(
aName
);
aName
.
Erase
(
31
);
aName
.
Erase
(
nMaxLegalStr
);
return
sal_True
;
return
sal_True
;
}
}
...
...
sot/source/sdstor/stgelem.hxx
Dosyayı görüntüle @
542c93d1
...
@@ -117,9 +117,10 @@ class StgStream;
...
@@ -117,9 +117,10 @@ class StgStream;
#define STGENTRY_SIZE 128
#define STGENTRY_SIZE 128
//StructuredStorageDirectoryEntry
class
StgEntry
{
// directory enty
class
StgEntry
{
// directory enty
sal_uInt16
nName
[
32
];
// 00 name as WCHAR
sal_uInt16
nName
[
32
];
// 00 name as WCHAR
sal_
Int16
nNameLen
;
// 40 size of name in bytes including 00H
sal_
uInt16
nNameLen
;
// 40 size of name in bytes including 00H
sal_uInt8
cType
;
// 42 entry type
sal_uInt8
cType
;
// 42 entry type
sal_uInt8
cFlags
;
// 43 0 or 1 (tree balance?)
sal_uInt8
cFlags
;
// 43 0 or 1 (tree balance?)
sal_Int32
nLeft
;
// 44 left node entry
sal_Int32
nLeft
;
// 44 left node entry
...
...
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