Re: advapi32/tests: Fix copy&paste typo

2013-05-22 Thread Guo Jian
Y(HKEY_LOCAL_MACHINE, "Software\\Classes\\WineTestCls\\subkey3"); CREATE_KEY(HKEY_LOCAL_MACHINE, "Software\\Classes\\WineTestCls\\subkey2"); SET_VALUE(HKEY_LOCAL_MACHINE, "Software\\Classes\\WineTestCls", "val3", "hkcu"); SET_VALUE(HKEY_LOCAL_MACHINE, "Software\\Classes\\WineTestCls", "val2", "hkcu"); /* check the count */ CHECK_KEY_INFO(HKEY_CLASSES_ROOT, "WineTestCls", 3, 3); if ((res = RegOpenKeyExA( HKEY_CLASSES_ROOT, "WineTestCls", 0, KEY_ENUMERATE_SUB_KEYS|KEY_QUERY_VALUE, &hkey )) != ERROR_SUCCESS) { ok(FALSE, "RegOpenKeyExA %p\\%s failed with %08X\n", hkey, "WineTestCls", res); return; } /* check the names and order of subkeys when enumerating */ i = 0; len = sizeof(name); while (ERROR_SUCCESS == (res = RegEnumKeyExA(hkey, i, name, &len, NULL, NULL, NULL, NULL))) { ++ i; if (i > 3) { ok(FALSE, "got extra subkey name %s\n", name); } else if (strncmp(name, "subkey", 6) || name[6] != (i + '0') || name[7]) { ok(FALSE, "got unexpected subkey name or order %s at index %d\n", name, i); } len = sizeof(name); } if (res != ERROR_NO_MORE_ITEMS) { ok(FALSE, "RegEnumKeyExA failed with %08X\n", res); return; } if (i < 3) { ok(FALSE, "expected 3 subkeys but got only %d\n", i); } /* check the names and order of values when enumerating */ i = 0; len = sizeof(name); while (ERROR_SUCCESS == (res = RegEnumValueA(hkey, i, name, &len, NULL, NULL, NULL, NULL))) { ++ i; if (i > 3) { ok(FALSE, "got extra value name %s\n", name); } else if (strncmp(name, "val", 3) || name[3] != (i + '0') || name[4]) { ok(FALSE, "got unexpected value name or order %s at index %d\n", name, i); } len = sizeof(name); } if (res != ERROR_NO_MORE_ITEMS) { ok(FALSE, "RegEnumValueA failed with %08X\n", res); return; } if (i < 3) { ok(FALSE, "expected 3 value but got only %d\n", i); } RegCloseKey(hkey); cleanup_classes(); } -- Regards, Guo Jian

Re: GSoC 2013 - Registry Merging Project

2013-05-17 Thread Guo Jian
Tests for read-operations has been done. http://newtestbot.winehq.org/JobDetails.pl?Key=942 All the results are expected: 1. query_value prefer values in hkcu. 2. query_key_info gives the count of subkeys and values distincted. 3. enum_value & enum_key combine result from hkcu & hklm and return in

Re: GSoC proposal

2013-05-17 Thread Guo Jian
? >>>>> --Juan >>>>> >>>>> >>>>> On Tue, May 7, 2013 at 9:40 AM, George Stephanos >>>>> wrote: >>>>>> >>>>>> I had responded already but yes I'm a little bit shallow on the >>>>>> timeline details. Alright. >>>>>> Could you give me permission to modify the proposal? >>>>> >>>>> >>>> >>> >> > > > > -- Regards, Guo Jian

Re: GSoC 2013 - Registry Merging Project

2013-05-14 Thread Guo Jian
Sorry to bother. Forgot CC to wine-devel. > In this case, though, I think you might have stumbled across something > that's relatively rare, and unless there's an application that depends on > this behavior, it might be worth ignoring for now. It's in rear case that applications use volatile key

Re: GSoC 2013 - Registry Merging Project

2013-05-14 Thread Guo Jian
And a new test is here http://newtestbot.winehq.org/JobDetails.pl?Key=934 2013/5/15 Guo Jian : > I just found that the REG_OPTION_VOLATILE of create_key in hkcr may > have some tricks. Not surprisingly found a strange situation when > testing on windows. See my test here please

Re: GSoC 2013 - Registry Merging Project

2013-05-14 Thread Guo Jian
I just found that the REG_OPTION_VOLATILE of create_key in hkcr may have some tricks. Not surprisingly found a strange situation when testing on windows. See my test here please : http://newtestbot.winehq.org/JobDetails.pl?Key=932 This happens as following : First create hkcu/software/classes/key1,

Re: GSoC 2013 - Registry Merging Project

2013-05-14 Thread Guo Jian
I'll start writing the test reports. -- Regards, Guo Jian

Re: GSoC 2013 - Registry Merging Project

2013-05-13 Thread Guo Jian
ification from the mentor. Note that the 2nd and 3rd part have time intersection beacause I think each of the two is based on another. -- Regards, Guo Jian

Re: [PATCH 2/2] Fixing ReleaseCapture of child window bug in EnableWindow

2013-05-09 Thread Guo Jian
> Did you forget to remove the todo_wine introduced in [patch 1/2]? I forgot it. I'll have more check and resend once latter. And I get a little more to understand what todo_wine means this time. Thank you. -- Regards, Guo Jian

[PATCH 1/2] Added test to show EnableWindow cause wrong ReleaseCapture (try 3)

2013-05-09 Thread Guo Jian
inline? Or which mail client should I use that may avoid this problem? Thunderbird wraps long lines and join lines terminating with a space, I have to manually correct that, it does slows me down. Thanks. Guo Jian A window will lose capture if it's disabled, but it's children should not.