static int32 MyNPN_Write(NPP instance, NPStream* stream, int32 len, void* buffer) { int32 ret; DEB(ef, "-> NPN_Write( %x, 0x%x, %d, 0x%x )\n", instance, stream, len, buffer); ret = gNetscapeFuncs.write( instance, stream, len, buffer ); DEB(ef, "<- NPN_Write = %d\n", ret); return ret; }
int32_t NPN_Write(NPP instance, NPStream * stream, int32_t len, void *buffer) { int navMinorVersion = NPNFuncs.version & 0xFF; int32_t rv = 0; if (navMinorVersion >= NPVERS_HAS_STREAMOUTPUT) rv = NPNFuncs.write(instance, stream, len, buffer); else rv = -1; return rv; }
int32 NPN_Write(NPP instance, NPStream *stream, int32 len, void *buffer) { int navMinorVersion = NPNFuncs.version & 0xFF; int32 rv = 0; if(logger) logger->logCall(action_npn_write, (DWORD)instance, (DWORD)stream, (DWORD)len, (DWORD)buffer); if( navMinorVersion >= NPVERS_HAS_STREAMOUTPUT ) rv = NPNFuncs.write(instance, stream, len, buffer); else rv = -1; if(logger) logger->logReturn(); return rv; }
int32_t NPN_Write(NPP instance, NPStream *stream, int32_t len, void *buffer) { return NPNFuncs.write(instance, stream, len, buffer); }