Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -ur wine-1.7.4.old/dlls/kernel32/locale.c wine-1.7.4/dlls/kernel32/locale.c
- --- wine-1.7.4.old/dlls/kernel32/locale.c 2013-12-01 11:01:00.966459705 -0800
- +++ wine-1.7.4/dlls/kernel32/locale.c 2013-12-01 11:01:38.812861477 -0800
- @@ -1133,13 +1133,13 @@
- {
- DWORD size;
- INT ret;
- - HANDLE hkey;
- + static HANDLE hkey;
- NTSTATUS status;
- UNICODE_STRING nameW;
- KEY_VALUE_PARTIAL_INFORMATION *info;
- static const int info_size = FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION, Data);
- - if (!(hkey = create_registry_key())) return -1;
- + if (!hkey && !(hkey = create_registry_key())) return -1;
- RtlInitUnicodeString( &nameW, value );
- size = info_size + len * sizeof(WCHAR);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement