The Sims 2 doesn't work with vanilla Wine.
"The infamous D3DERR_INVALIDCALL is due to the fact Wine is hardcoded to supply 256 vertex shaders instead of 1024 that The Sims 2 demands. Patching this constraint, as well as providing "dummy" code for an unimplemented shader interface allows the game to play to surprising results."
The howto / notes section includes a patch which makes the game work.
Wine is patched for Gallium Nine support, could this be patched in too?