Comment 3 for bug 1367660

Revision history for this message
OCTAGRAM (octagram) wrote :

First, I'm on Win2003 x64 as opposed to WinXP, but should be similar. I have installed MSVS redistributables 2005, 2008, 2010, 2012 and 2013, and I can see no rand_s in msvcrt.dll no matter what I try. There are, however, another dlls like msvcr100.dll from MSVS 2010, msvcr110.dll and msvcr120.dll, and all of them contain rand_s. It looks like a mistake to look for rand_s in msvcrt.dll.

One should check for msvcr120.dll, msvcr110.dll or msvcr100.dll existence, dynamically link best of them and use its API; otherwise fallback to rand() in msvcrt.dll.

I had solved my problem with InkScape by nulling out "_s" in rand_s in glib*.dll import table. Copying msvcr120.dll and renaming to msvcrt.dll might probably also work. Have not checked.