msvcr110: Fix typo in exported symbol _set_SSE2_enable.

Sebastian Lackner sebastian at fds-team.de
Mon Jun 16 15:16:44 CDT 2014


As reported by user 'cmr' on #winehq:

--- snip ---
Unhandled exception: unimplemented function
MSVCR110.dll._set_SSE2_enable called in 32-bit code (0x7bc510f9).
[...]
Backtrace:
=>0 0x7bc510f9 call_dll_entry_point+0x349() in ntdll (0x0033f458)
  1 0x0034000f (0x0033fdb4)
[...]
--- snip ---

Reason is that MSVCR110 by Wine exports this function with two
underscores in front of it, instead of one, like the Windows version:

winedump -j export ./msvcr100.dll | grep SSE
  000A7891  1021 _set_SSE2_enable
sha256sum ./msvcr100.dll
60c06e0fa4449314da3a0a87c1a9d9577df99226f943637e06f61188e5862efa
./msvcr100.dll

I think it must be a typo, as its also defined with a single underscore
in all all other msvcr* dlls:

grep SSE dlls/*/*.spec
dlls/msvcr100/msvcr100.spec:@ cdecl _set_SSE2_enable(long)
MSVCRT__set_SSE2_enable
dlls/msvcr70/msvcr70.spec:@ cdecl _set_SSE2_enable(long)
msvcrt._set_SSE2_enable
dlls/msvcr71/msvcr71.spec:@ cdecl _set_SSE2_enable(long)
msvcrt._set_SSE2_enable
dlls/msvcr80/msvcr80.spec:@ cdecl _set_SSE2_enable(long)
msvcrt._set_SSE2_enable
dlls/msvcr90/msvcr90.spec:@ cdecl _set_SSE2_enable(long)
MSVCRT__set_SSE2_enable
dlls/msvcrt/msvcrt.spec:@ cdecl _set_SSE2_enable(long)
MSVCRT__set_SSE2_enable
[...]

---
 dlls/msvcr110/msvcr110.spec |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-msvcr110-Fix-typo-in-exported-symbol-_set_SSE2_enabl.patch
Type: text/x-patch
Size: 1039 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140616/c48ede26/attachment.bin>


More information about the wine-patches mailing list