Kaydet (Commit) 7a765fa7 authored tarafından Carsten Driesner's avatar Carsten Driesner

removetooltypes01: #ii12600# Exchange tools types in extensions

üst 78b9b7bf
...@@ -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 UINT32 in MediatorMessage::GetUINT32\n" ); medDebug( nBytes != sizeof( sal_uInt32 ), "No sal_uInt32 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 );
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment