mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-22 18:32:16 +03:00
[project @ 2003-07-09 22:06:39 by bursa]
Bool fixes. svn path=/import/netsurf/; revision=215
This commit is contained in:
parent
0226e529e6
commit
907115c49d
10
render/box.c
10
render/box.c
@ -1583,12 +1583,12 @@ bool plugin_decode(struct content* content, char* url, struct box* box,
|
||||
* we can't handle this object.
|
||||
*/
|
||||
if(po->data == 0 && po->classid == 0) {
|
||||
return false;
|
||||
return FALSE;
|
||||
}
|
||||
if(po->data == 0 && po->classid != 0) {
|
||||
if(strnicmp(po->classid, "clsid:", 6) == 0) {
|
||||
LOG(("ActiveX object - n0"));
|
||||
return false;
|
||||
return FALSE;
|
||||
}
|
||||
else {
|
||||
url = url_join(po->classid, po->codebase);
|
||||
@ -1603,11 +1603,11 @@ bool plugin_decode(struct content* content, char* url, struct box* box,
|
||||
*/
|
||||
if(po->type != 0) {
|
||||
if (content_lookup(po->type) == CONTENT_OTHER)
|
||||
return false;
|
||||
return FALSE;
|
||||
}
|
||||
if(po->codetype != 0) {
|
||||
if (content_lookup(po->codetype) == CONTENT_OTHER)
|
||||
return false;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* If we've got to here, the object declaration has provided us with
|
||||
@ -1619,6 +1619,6 @@ bool plugin_decode(struct content* content, char* url, struct box* box,
|
||||
*/
|
||||
html_fetch_object(content, url, box);
|
||||
|
||||
return true;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -89,8 +89,8 @@ bool plugin_handleable(const char *mime_type)
|
||||
|
||||
sprintf(sysvar, "%s%x", ALIAS_PREFIX, e == NULL ? fv : 0 );
|
||||
if (getenv(sysvar) == 0)
|
||||
return false;
|
||||
return true;
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -8,7 +8,6 @@
|
||||
#ifndef _NETSURF_RISCOS_PLUGIN_H_
|
||||
#define _NETSURF_RISCOS_PLUGIN_H_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "netsurf/content/content.h"
|
||||
#include "netsurf/render/box.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user