Bug 524256 - Crash stacks not unwound correctly past NS_InvokeByIndex_P on Windows: use a #pragma to inform MSVC that the function has a frame pointer and it should not emit a specialized FPO stack-walking program, r=ted

--HG--
extra : rebase_source : af980dc9c926057869f1b192206da5c06080ceba
This commit is contained in:
Benjamin Smedberg 2009-10-27 09:38:03 -04:00
Родитель 1b015e4cd1
Коммит d97df7ff26
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -77,6 +77,9 @@ invoke_copy_to_stack(PRUint32* d, PRUint32 paramCount, nsXPTCVariant* s)
}
#pragma warning(disable : 4035) // OK to have no return value
// Tell the PDB file this function has a standard frame pointer, and not to use
// a custom FPO program.
#pragma optimize( "y", off )
extern "C" NS_EXPORT __declspec(naked) nsresult NS_FROZENCALL
NS_InvokeByIndex_P(nsISupports* that, PRUint32 methodIndex,
PRUint32 paramCount, nsXPTCVariant* params)