The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
syscall function parameter
05-28-2013, 04:03 AM
Post: #1
syscall function parameter
const HLEFunction sceNetAdhocctl[] =
{
{...}, {...},
{0x20B317A0, WrapI_UU<sceNetAdhocctlAddHandler>, "sceNetAdhocctlAddHandler"},
...,
{...},
}
typedef void(* sceNetAdhocctlHandler)(int flag, int error, void *unknown);

int sceNetAdhocctlAddHandler(u32 handler, u32 unknown)
{
netActHandler = (sceNetAdhocctlHandler)Memory::GetPointer(handler);
netActParam=(void*)unknown;
// I know this function is not here call, just test
if (netActHandler)
netActHandler(3, 0, netActParam); // this will break when debug
return 0; //return Handler id on success, < 0 on error.
}

Parameter handler point to function is not compile???
How to make it run well?

My English is not good, don't dispute my grammar.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
syscall function parameter - Hubert - 05-28-2013 04:03 AM
RE: syscall function parameter - [Unknown] - 05-28-2013, 06:04 AM
RE: syscall function parameter - Hubert - 05-30-2013, 11:41 AM
RE: syscall function parameter - Denizen - 05-28-2013, 02:29 PM

Forum Jump: