Was freeing the incorrect pointers -> crash in mallocs/frees.

This commit is contained in:
Marcus Meissner 1998-10-21 16:49:03 +00:00 committed by Alexandre Julliard
parent 575a1653f4
commit 7ce0684f69
1 changed files with 3 additions and 3 deletions

View File

@ -342,7 +342,7 @@ static BOOL32 MAIN_ParseDebugOptions(char *options)
* RETURNS:
* 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 *charset=NULL, *dialect=NULL;
@ -671,8 +671,8 @@ int MAIN_GetLanguageID(char *Lang, char *Country, char *Charset, char *Dialect)
ret = LANG_NEUTRAL;
end_MAIN_GetLanguageID:
if (Charset) free(Charset);
if (Dialect) free(Dialect);
if (Charset) free(charset);
if (Dialect) free(dialect);
return ret;
}