Skip to content

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
Fix problems reading compressed control structures
  • Loading branch information
Dijji committed Sep 14, 2016
1 parent b2606fc commit 3aa30bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
</ListView.View>
</ListView>
</Grid>
<ListView Grid.Row="1" Name="listAttachments" Margin="0,0,0,0" ItemsSource="{Binding Path=CurrentMessage.Attachments}"
<ListView Grid.Row="1" Name="listAttachments" Margin="0,0,0,0" ItemsSource="{Binding Path=CurrentMessage.Attachments}" MaxHeight="200"
SelectionChanged="listAttachments_SelectionChanged" FontSize="12" Visibility="{Binding IsAttachmentPresent, Converter={StaticResource VisibleIfTrue}}">
<ListView.View>
<GridView>
Expand Down
12 changes: 6 additions & 6 deletions NDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ private void ReadSubNodeBtreeUnicode(FileStream fs, UInt64 subDataBid, TreeInter
var rb = LookupDataBlock(subDataBid);
if (rb == null)
throw new Exception("SubNode data block does not exist");
byte[] buffer = new byte[rb.Length];
fs.Seek((long)rb.Offset, SeekOrigin.Begin);
fs.Read(buffer, 0, rb.Length);

int read;
byte[] buffer = ReadAndDecompress(fs, rb, out read);
var sl = Map.MapType<SLBLOCKUnicode>(buffer);

if (sl.cLevel > 0)
Expand Down Expand Up @@ -590,9 +590,9 @@ private void ReadSubNodeBtreeANSI(FileStream fs, UInt64 subDataBid, TreeIntermed
var rb = LookupDataBlock(subDataBid);
if (rb == null)
throw new Exception("SubNode data block does not exist");
byte[] buffer = new byte[rb.Length];
fs.Seek((long)rb.Offset, SeekOrigin.Begin);
fs.Read(buffer, 0, rb.Length);

int read;
byte[] buffer = ReadAndDecompress(fs, rb, out read);
var sl = Map.MapType<SLBLOCKANSI>(buffer);

if (sl.cLevel > 0)
Expand Down
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.*")]
[assembly: AssemblyVersion("1.0.*")]

0 comments on commit 3aa30bc

Please sign in to comment.