Use API to get content from browser_window.

This commit is contained in:
Michael Drake 2014-12-04 11:58:49 +00:00
parent e4437ad76b
commit c4e37fb03d
1 changed files with 2 additions and 1 deletions

View File

@ -312,7 +312,8 @@ STATIC VOID rx_save(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((unu
if((fh = FOpen((char *)cmd->ac_ArgList[0], MODE_NEWFILE, 0)))
{
if((source_data = content_get_source_data(gw->bw->current_content, &source_size)))
hlcache_handle *h = browser_window_get_content(gw->bw);
if((source_data = content_get_source_data(h, &source_size)))
FWrite(fh, source_data, 1, source_size);
FClose(fh);