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
9d22ab17
Kaydet (Commit)
9d22ab17
authored
Agu 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#735993 Explicit null dereferenced
Change-Id: Ib8b1af5a783a2bae285c24e5153cce4713a2e2dd
üst
7a54951f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
salmisc.cxx
vcl/source/gdi/salmisc.cxx
+12
-2
No files found.
vcl/source/gdi/salmisc.cxx
Dosyayı görüntüle @
9d22ab17
...
@@ -342,7 +342,12 @@ BitmapBuffer* StretchAndConvert(
...
@@ -342,7 +342,12 @@ BitmapBuffer* StretchAndConvert(
(
nDstScanlineFormat
==
BMP_FORMAT_4BIT_LSN_PAL
)
||
(
nDstScanlineFormat
==
BMP_FORMAT_4BIT_LSN_PAL
)
||
(
nDstScanlineFormat
==
BMP_FORMAT_8BIT_PAL
)
)
(
nDstScanlineFormat
==
BMP_FORMAT_8BIT_PAL
)
)
{
{
DBG_ASSERT
(
pDstPal
,
"destination buffer requires palette"
);
assert
(
pDstPal
&&
"destination buffer requires palette"
);
if
(
!
pDstPal
)
{
delete
pDstBuffer
;
return
NULL
;
}
pDstBuffer
->
maPalette
=
*
pDstPal
;
pDstBuffer
->
maPalette
=
*
pDstPal
;
}
}
else
if
(
(
nDstScanlineFormat
==
BMP_FORMAT_8BIT_TC_MASK
)
||
else
if
(
(
nDstScanlineFormat
==
BMP_FORMAT_8BIT_TC_MASK
)
||
...
@@ -351,7 +356,12 @@ BitmapBuffer* StretchAndConvert(
...
@@ -351,7 +356,12 @@ BitmapBuffer* StretchAndConvert(
(
nDstScanlineFormat
==
BMP_FORMAT_24BIT_TC_MASK
)
||
(
nDstScanlineFormat
==
BMP_FORMAT_24BIT_TC_MASK
)
||
(
nDstScanlineFormat
==
BMP_FORMAT_32BIT_TC_MASK
)
)
(
nDstScanlineFormat
==
BMP_FORMAT_32BIT_TC_MASK
)
)
{
{
DBG_ASSERT
(
pDstMask
,
"destination buffer requires color mask"
);
assert
(
pDstMask
&&
"destination buffer requires color mask"
);
if
(
!
pDstMask
)
{
delete
pDstBuffer
;
return
NULL
;
}
pDstBuffer
->
maColorMask
=
*
pDstMask
;
pDstBuffer
->
maColorMask
=
*
pDstMask
;
}
}
...
...
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