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
7a765fa7
Kaydet (Commit)
7a765fa7
authored
Ock 17, 2011
tarafından
Carsten Driesner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
removetooltypes01: #ii12600# Exchange tools types in extensions
üst
78b9b7bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
mediator.cxx
extensions/source/plugin/unx/mediator.cxx
+8
-8
sane.cxx
extensions/source/scanner/sane.cxx
+1
-1
No files found.
extensions/source/plugin/unx/mediator.cxx
Dosyayı görüntüle @
7a765fa7
...
@@ -248,7 +248,7 @@ sal_uLong MediatorMessage::ExtractULONG()
...
@@ -248,7 +248,7 @@ sal_uLong MediatorMessage::ExtractULONG()
if
(
!
m_pRun
)
if
(
!
m_pRun
)
m_pRun
=
m_pBytes
;
m_pRun
=
m_pBytes
;
medDebug
(
(
ULONG
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::ExtractULONG
\n
"
);
medDebug
(
(
sal_uLong
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::ExtractULONG
\n
"
);
sal_uLong
nCount
;
sal_uLong
nCount
;
memcpy
(
&
nCount
,
m_pRun
,
sizeof
(
sal_uLong
)
);
memcpy
(
&
nCount
,
m_pRun
,
sizeof
(
sal_uLong
)
);
m_pRun
+=
sizeof
(
sal_uLong
);
m_pRun
+=
sizeof
(
sal_uLong
);
...
@@ -260,13 +260,13 @@ void* MediatorMessage::GetBytes( sal_uLong& rBytes )
...
@@ -260,13 +260,13 @@ void* MediatorMessage::GetBytes( sal_uLong& rBytes )
if
(
!
m_pRun
)
if
(
!
m_pRun
)
m_pRun
=
m_pBytes
;
m_pRun
=
m_pBytes
;
medDebug
(
(
ULONG
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetBytes
\n
"
);
medDebug
(
(
sal_uLong
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetBytes
\n
"
);
sal_uLong
nBytes
=
ExtractULONG
();
sal_uLong
nBytes
=
ExtractULONG
();
if
(
nBytes
==
0
)
if
(
nBytes
==
0
)
return
NULL
;
return
NULL
;
medDebug
(
(
ULONG
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetBytes
\n
"
);
medDebug
(
(
sal_uLong
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetBytes
\n
"
);
char
*
pBuffer
=
new
char
[
nBytes
];
char
*
pBuffer
=
new
char
[
nBytes
];
memcpy
(
pBuffer
,
m_pRun
,
nBytes
);
memcpy
(
pBuffer
,
m_pRun
,
nBytes
);
m_pRun
+=
nBytes
;
m_pRun
+=
nBytes
;
...
@@ -279,13 +279,13 @@ char* MediatorMessage::GetString()
...
@@ -279,13 +279,13 @@ char* MediatorMessage::GetString()
if
(
!
m_pRun
)
if
(
!
m_pRun
)
m_pRun
=
m_pBytes
;
m_pRun
=
m_pBytes
;
medDebug
(
(
ULONG
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetString
\n
"
);
medDebug
(
(
sal_uLong
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetString
\n
"
);
sal_uLong
nBytes
=
ExtractULONG
();
sal_uLong
nBytes
=
ExtractULONG
();
if
(
nBytes
==
0
)
if
(
nBytes
==
0
)
return
NULL
;
return
NULL
;
medDebug
(
(
ULONG
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetString
\n
"
);
medDebug
(
(
sal_uLong
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetString
\n
"
);
char
*
pBuffer
=
new
char
[
nBytes
+
1
];
char
*
pBuffer
=
new
char
[
nBytes
+
1
];
memcpy
(
pBuffer
,
m_pRun
,
nBytes
);
memcpy
(
pBuffer
,
m_pRun
,
nBytes
);
pBuffer
[
nBytes
]
=
0
;
pBuffer
[
nBytes
]
=
0
;
...
@@ -298,10 +298,10 @@ sal_uInt32 MediatorMessage::GetUINT32()
...
@@ -298,10 +298,10 @@ sal_uInt32 MediatorMessage::GetUINT32()
if
(
!
m_pRun
)
if
(
!
m_pRun
)
m_pRun
=
m_pBytes
;
m_pRun
=
m_pBytes
;
medDebug
(
(
ULONG
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetUINT32
\n
"
);
medDebug
(
(
sal_uLong
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetUINT32
\n
"
);
sal_uLong
nBytes
=
ExtractULONG
();
sal_uLong
nBytes
=
ExtractULONG
();
medDebug
(
nBytes
!=
sizeof
(
UINT32
),
"No UINT
32 in MediatorMessage::GetUINT32
\n
"
);
medDebug
(
nBytes
!=
sizeof
(
sal_uInt32
),
"No sal_uInt
32 in MediatorMessage::GetUINT32
\n
"
);
medDebug
(
(
ULONG
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetUINT32
\n
"
);
medDebug
(
(
sal_uLong
)(
m_pRun
-
m_pBytes
)
>=
m_nBytes
,
"Overflow in MediatorMessage::GetUINT32
\n
"
);
sal_uInt32
nRet
;
sal_uInt32
nRet
;
memcpy
(
&
nRet
,
m_pRun
,
sizeof
(
nRet
)
);
memcpy
(
&
nRet
,
m_pRun
,
sizeof
(
nRet
)
);
m_pRun
+=
sizeof
(
sal_uInt32
);
m_pRun
+=
sizeof
(
sal_uInt32
);
...
...
extensions/source/scanner/sane.cxx
Dosyayı görüntüle @
7a765fa7
...
@@ -307,7 +307,7 @@ sal_Bool Sane::Open( const char* name )
...
@@ -307,7 +307,7 @@ sal_Bool Sane::Open( const char* name )
int
i
;
int
i
;
SANE_Status
nStatus
=
p_open
(
(
SANE_String_Const
)
name
,
&
maHandle
);
SANE_Status
nStatus
=
p_open
(
(
SANE_String_Const
)
name
,
&
maHandle
);
FAIL_STATE
(
nStatus
,
"sane_open"
,
FALSE
);
FAIL_STATE
(
nStatus
,
"sane_open"
,
sal_False
);
ReloadOptions
();
ReloadOptions
();
...
...
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