View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 07-30-2013 , 00:03   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #568

Quote:
Originally Posted by dcx2 View Post
This function is very odd. For one, Linux actually uses what I referred to as the "unknown" arg. It just writes a couple zeros to it, sometimes. But Windows does not use the arg at all, even though it's passed on the stack. Is this an artifact of that struct returned by value?

Yes.

The linux symbol tells you the exact, correct argument types (or type, in this case) and order (aside from the thisptr). The rest is due to the return type.

If you were to figure out the struct and add it to the code, and putting it as the return type, the compiler on each platform would generate exactly what you are seeing.
psychonic is offline