I have gotten time to take alook at how detouring works,the problem is if i output parameter 2 then its crashing
FARPROC WINAPI My_GetProcAddress(HMODULE hModule,LPCSTR lpProcName)
{
sprintf(sBuffer,"%s\n",GetProcAddress); //Hooks fine
sprintf(sBuffer,"%s %s\n",GetProcAddress,lpProcName); //Crash , sBuffer is char[128] so thats enough
oStream << sBuffer;
return p_GetProcAddress(hModule,lpProcName);
}