Advertisement
Guest User

Risk of Rain/wine

a guest
Dec 1st, 2013
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.72 KB | None | 0 0
  1. diff -ur wine-1.7.4.old/dlls/kernel32/locale.c wine-1.7.4/dlls/kernel32/locale.c
  2. --- wine-1.7.4.old/dlls/kernel32/locale.c   2013-12-01 11:01:00.966459705 -0800
  3. +++ wine-1.7.4/dlls/kernel32/locale.c   2013-12-01 11:01:38.812861477 -0800
  4. @@ -1133,13 +1133,13 @@
  5.  {
  6.      DWORD size;
  7.      INT ret;
  8. -    HANDLE hkey;
  9. +    static HANDLE hkey;
  10.      NTSTATUS status;
  11.      UNICODE_STRING nameW;
  12.      KEY_VALUE_PARTIAL_INFORMATION *info;
  13.      static const int info_size = FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION, Data);
  14.  
  15. -    if (!(hkey = create_registry_key())) return -1;
  16. +    if (!hkey && !(hkey = create_registry_key())) return -1;
  17.  
  18.      RtlInitUnicodeString( &nameW, value );
  19.      size = info_size + len * sizeof(WCHAR);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement