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
46ccb683
Kaydet (Commit)
46ccb683
authored
Kas 08, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: use int type for size in DirectBufferAllocator allocate
Change-Id: Ied2687d334f7d1ff9ff2f3cb6664848d50814b7c
üst
a7e7e7d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
lokandroid.cxx
desktop/source/lib/lokandroid.cxx
+10
-6
No files found.
desktop/source/lib/lokandroid.cxx
Dosyayı görüntüle @
46ccb683
...
@@ -190,16 +190,20 @@ extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Office_saveAs
...
@@ -190,16 +190,20 @@ extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Office_saveAs
/* DirectBufferAllocator */
/* DirectBufferAllocator */
extern
"C"
SAL_JNI_EXPORT
jobject
JNICALL
Java_org_libreoffice_kit_DirectBufferAllocator_allocateDirectBufferNative
extern
"C"
SAL_JNI_EXPORT
jobject
JNICALL
Java_org_libreoffice_kit_DirectBufferAllocator_allocateDirectBufferNative
(
JNIEnv
*
pEnv
,
jclass
/*aClass*/
,
j
long
nSize
)
(
JNIEnv
*
pEnv
,
jclass
/*aClass*/
,
j
int
nSize
)
{
{
jobject
aBuffer
=
NULL
;
jobject
aBuffer
=
NULL
;
void
*
pMemory
=
malloc
(
nSize
);
if
(
pMemory
!=
NULL
)
if
(
nSize
>
0
)
{
{
aBuffer
=
pEnv
->
NewDirectByteBuffer
(
pMemory
,
nSize
);
void
*
pMemory
=
malloc
(
nSize
);
if
(
!
aBuffer
)
if
(
pMemory
!=
NULL
)
{
{
free
(
pMemory
);
aBuffer
=
pEnv
->
NewDirectByteBuffer
(
pMemory
,
nSize
);
if
(
aBuffer
==
NULL
)
{
free
(
pMemory
);
}
}
}
}
}
return
aBuffer
;
return
aBuffer
;
...
...
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