View | Details | Raw Unified | Return to issue 14776
Collapse All | Expand All

(-)filter/source/placeware/zip.cxx (-8 / +8 lines)
Lines 89-95 Link Here
89
};
89
};
90
90
91
/** put one byte inside this stream */
91
/** put one byte inside this stream */
92
static osl::File::RC putc( unsigned char c, osl::File& rFile )
92
static osl::File::RC putC( unsigned char c, osl::File& rFile )
93
{
93
{
94
	sal_uInt64 nBytesWritten;
94
	sal_uInt64 nBytesWritten;
95
	osl::File::RC nRC = rFile.write( &c, 1, nBytesWritten );
95
	osl::File::RC nRC = rFile.write( &c, 1, nBytesWritten );
Lines 103-111 Link Here
103
{
103
{
104
	if( !isError() )
104
	if( !isError() )
105
	{
105
	{
106
		mnRC = putc( s & 0xff, mrFile );
106
		mnRC = putC( s & 0xff, mrFile );
107
		if( !isError() )
107
		if( !isError() )
108
			mnRC = putc( (s >> 8) & 0xff, mrFile );
108
			mnRC = putC( (s >> 8) & 0xff, mrFile );
109
	}
109
	}
110
}
110
}
111
111
Lines 115-130 Link Here
115
{
115
{
116
	if( !isError() )
116
	if( !isError() )
117
	{
117
	{
118
		mnRC = putc(l & 0xff, mrFile);
118
		mnRC = putC(l & 0xff, mrFile);
119
		if( !isError() )
119
		if( !isError() )
120
		{
120
		{
121
			mnRC = putc((l >> 8) & 0xff, mrFile);
121
			mnRC = putC((l >> 8) & 0xff, mrFile);
122
			if( !isError() )
122
			if( !isError() )
123
			{
123
			{
124
				mnRC = putc((l >> 16) & 0xff, mrFile);
124
				mnRC = putC((l >> 16) & 0xff, mrFile);
125
				if( !isError() )
125
				if( !isError() )
126
				{
126
				{
127
					mnRC = putc((l >> 24) & 0xff, mrFile);
127
					mnRC = putC((l >> 24) & 0xff, mrFile);
128
				}
128
				}
129
			}
129
			}
130
		}
130
		}
Lines 178-184 Link Here
178
		e->offset = static_cast< sal_Int32 >( nPosition );
178
		e->offset = static_cast< sal_Int32 >( nPosition );
179
179
180
		for (i = 0; (i < len) && !isError(); ++i)
180
		for (i = 0; (i < len) && !isError(); ++i)
181
			mnRC = putc(0, mrFile);
181
			mnRC = putC(0, mrFile);
182
	}
182
	}
183
}
183
}
184
184

Return to issue 14776