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
7ce0684f
Commit
7ce0684f
authored
Oct 21, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 21, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Was freeing the incorrect pointers -> crash in mallocs/frees.
parent
575a1653
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
misc/main.c
+3
-3
No files found.
misc/main.c
View file @
7ce0684f
...
@@ -342,7 +342,7 @@ static BOOL32 MAIN_ParseDebugOptions(char *options)
...
@@ -342,7 +342,7 @@ static BOOL32 MAIN_ParseDebugOptions(char *options)
* RETURNS:
* RETURNS:
* the numeric code of the language used by Windows (or 0x00)
* the numeric code of the language used by Windows (or 0x00)
*/
*/
int
MAIN_GetLanguageID
(
char
*
Lang
,
char
*
Country
,
char
*
Charset
,
char
*
Dialect
)
int
MAIN_GetLanguageID
(
LPCSTR
Lang
,
LPCSTR
Country
,
LPCSTR
Charset
,
LPCSTR
Dialect
)
{
{
char
lang
[
3
]
=
"??"
,
country
[
3
]
=
{
0
,
0
,
0
};
char
lang
[
3
]
=
"??"
,
country
[
3
]
=
{
0
,
0
,
0
};
char
*
charset
=
NULL
,
*
dialect
=
NULL
;
char
*
charset
=
NULL
,
*
dialect
=
NULL
;
...
@@ -671,8 +671,8 @@ int MAIN_GetLanguageID(char *Lang, char *Country, char *Charset, char *Dialect)
...
@@ -671,8 +671,8 @@ int MAIN_GetLanguageID(char *Lang, char *Country, char *Charset, char *Dialect)
ret
=
LANG_NEUTRAL
;
ret
=
LANG_NEUTRAL
;
end_MAIN_GetLanguageID:
end_MAIN_GetLanguageID:
if
(
Charset
)
free
(
C
harset
);
if
(
Charset
)
free
(
c
harset
);
if
(
Dialect
)
free
(
D
ialect
);
if
(
Dialect
)
free
(
d
ialect
);
return
ret
;
return
ret
;
}
}
...
...
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