Skip to content

Commit

Permalink
fixed token termination in :types handling for windows file dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisumbel committed Feb 21, 2011
1 parent 6f983be commit 0279edf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shoes/native/windows.c
Expand Up @@ -2295,13 +2295,12 @@ shoes_dialog_chooser(VALUE self, char *title, DWORD flags, VALUE attr)
}

// add the tokens on to the filter string

shoes_append_filter_token(&filters_buff, key_name, key_len);
shoes_append_filter_token(&filters_buff, val, val_len);
}

// the whole thing needs a final terminator
filters_buff = '\0';
*filters_buff = '\0';
} else
// old shoes apps under windows may expect this
memcpy(filters, "All\0*.*\0Text\0*.TXT\0\0", 20);
Expand Down

0 comments on commit 0279edf

Please sign in to comment.