On 11/13/06, Paul Chitescu paulc@voip.null.ro wrote:
Changelog: mscoree: Load settings (for now only reported version) from Registry on initialization (2/4)
+ /* @@ Wine registry key: HKCU\Software\Wine\CLR */ + if (RegOpenKeyExA(HKEY_CURRENT_USER, "Software\Wine\CLR", 0, KEY_READ, &key) == ERROR_SUCCESS) { + char buffer[BUFFER_MAX]; + DWORD type = 0; + DWORD length = sizeof(buffer); + if (RegQueryValueExA(key, "RuntimeVersion", 0, &type, (LPBYTE)buffer, &length) == ERROR_SUCCESS) + wine_utf8_mbstowcs(0, buffer, length, currentCORversion, BUFFER_MAX); + else + lstrcpyW(currentCORversion,defaultCORversion); + RegCloseKey(key); + } + else { + lstrcpyW(currentCORversion,defaultCORversion); + } +}
This isn't how Windows stores the COR version, why are we doing it this way?