mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 17:26:22 +00:00
mscoree: Allow capital for version number.
This commit is contained in:
parent
6c6744f800
commit
d08e89a8d6
|
@ -988,7 +988,7 @@ static BOOL parse_runtime_version(LPCWSTR version, DWORD *major, DWORD *minor, D
|
|||
*minor = 0;
|
||||
*build = 0;
|
||||
|
||||
if (version[0] == 'v')
|
||||
if (version[0] == 'v' || version[0] == 'V')
|
||||
{
|
||||
version++;
|
||||
if (!isdigit(*version))
|
||||
|
|
|
@ -347,6 +347,9 @@ HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR pExe, LPCWSTR pwszVersion, LPCWST
|
|||
|
||||
if (SUCCEEDED(ret))
|
||||
{
|
||||
if(pwszVersion)
|
||||
pVersion[0] = pwszVersion[0];
|
||||
|
||||
*dwDirectoryLength = dwDirectory;
|
||||
ret = ICLRRuntimeInfo_GetRuntimeDirectory(info, pDirectory, dwDirectoryLength);
|
||||
}
|
||||
|
|
|
@ -61,6 +61,7 @@ static BOOL init_functionpointers(void)
|
|||
static void test_versioninfo(void)
|
||||
{
|
||||
const WCHAR v9_0[] = {'v','9','.','0','.','3','0','3','1','9',0};
|
||||
const WCHAR v2_0cap[] = {'V','2','.','0','.','5','0','7','2','7',0};
|
||||
const WCHAR v2_0[] = {'v','2','.','0','.','5','0','7','2','7',0};
|
||||
const WCHAR v2_0_0[] = {'v','2','.','0','.','0',0};
|
||||
const WCHAR v1_1[] = {'v','1','.','1','.','4','3','2','2',0};
|
||||
|
@ -147,6 +148,11 @@ static void test_versioninfo(void)
|
|||
ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr);
|
||||
ok(!winetest_strcmpW(version, v2_0), "version is %s , expected %s\n", wine_dbgstr_w(version), wine_dbgstr_w(v2_0));
|
||||
|
||||
memset(version, 0, sizeof(version));
|
||||
hr = pGetRequestedRuntimeInfo( NULL, v2_0cap, NULL, 0, 0, path, MAX_PATH, &path_len, version, MAX_PATH, NULL);
|
||||
ok(hr == S_OK, "GetRequestedRuntimeInfo returned %08x\n", hr);
|
||||
ok(!winetest_strcmpW(version, v2_0cap), "version is %s , expected %s\n", wine_dbgstr_w(version), wine_dbgstr_w(v2_0cap));
|
||||
|
||||
/* Invalid Version and RUNTIME_INFO_UPGRADE_VERSION flag*/
|
||||
memset(version, 0, sizeof(version));
|
||||
hr = pGetRequestedRuntimeInfo( NULL, v1_1, NULL, 0, RUNTIME_INFO_UPGRADE_VERSION, path, MAX_PATH, &path_len, version, MAX_PATH, NULL);
|
||||
|
|
Loading…
Reference in a new issue