Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5a220321
Commit
5a220321
authored
Jan 08, 2007
by
Ken Thomases
Committed by
Alexandre Julliard
Jan 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Don't release preferred_locales until we're done with its members.
parent
22684cc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
locale.c
dlls/kernel32/locale.c
+4
-6
No files found.
dlls/kernel32/locale.c
View file @
5a220321
...
...
@@ -2842,12 +2842,8 @@ void LOCALE_Init(void)
*/
all_locales
=
CFLocaleCopyAvailableLocaleIdentifiers
();
preferred_locales
=
CFBundleCopyLocalizationsForPreferences
(
all_locales
,
NULL
);
if
(
preferred_locales
)
{
if
(
CFArrayGetCount
(
preferred_locales
))
user_language_string_ref
=
CFArrayGetValueAtIndex
(
preferred_locales
,
0
);
CFRelease
(
preferred_locales
);
}
if
(
preferred_locales
&&
CFArrayGetCount
(
preferred_locales
))
user_language_string_ref
=
CFArrayGetValueAtIndex
(
preferred_locales
,
0
);
CFRelease
(
all_locales
);
#endif
/* __APPLE__ */
...
...
@@ -2868,6 +2864,8 @@ void LOCALE_Init(void)
lcid_LC_MESSAGES
=
locale_name
.
lcid
;
TRACE
(
"setting lcid_LC_MESSAGES to '%s'
\n
"
,
user_locale
);
}
if
(
preferred_locales
)
CFRelease
(
preferred_locales
);
#endif
NtSetDefaultUILanguage
(
LANGIDFROMLCID
(
lcid_LC_MESSAGES
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment