Subversion Repositories spk

Rev

Rev 134 | Rev 155 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 134 Rev 143
Line 1026... Line 1026...
1026
 
1026
 
1027
	// if comopression is set to none, dont bother
1027
	// if comopression is set to none, dont bother
1028
	if ( m_iDataCompression == SPKCOMPRESS_NONE )
1028
	if ( m_iDataCompression == SPKCOMPRESS_NONE )
1029
	{
1029
	{
1030
		*size = m_lDataSize;
1030
		*size = m_lDataSize;
-
 
1031
		unsigned char *uncompr = new unsigned char[m_lDataSize];
-
 
1032
		memcpy(uncompr, m_sData, m_lDataSize);
1031
		return m_sData;
1033
		return uncompr;
1032
	}
1034
	}
1033
 
1035
 
1034
	if ( m_iDataCompression == SPKCOMPRESS_ZLIB )
1036
	if ( m_iDataCompression == SPKCOMPRESS_ZLIB )
1035
	{
1037
	{
1036
		unsigned long uncomprLen = m_lUncomprDataSize;
1038
		unsigned long uncomprLen = m_lUncomprDataSize;