The simple test crashes wine. And i think many other commands in constructor A() may crash wine.
test.cpp:
#include <windows.h> #include <stdio.h>
class A
{
public:
A();
};A::A()
{
LoadLibrary("user32.dll"); // all ok user32.dll is present
}A a;
int WinMain(HINSTANCE hInst, HINSTANCE, LPSTR szCmdLine, int nCmdShow)
{
return 0;
}