lektrosonic
Messages postés145Date d'inscriptionsamedi 2 octobre 2004StatutMembreDernière intervention21 février 2013
-
17 mai 2007 à 21:28
deadbird
Messages postés49Date d'inscriptionmercredi 15 janvier 2003StatutMembreDernière intervention 7 mars 2010
-
18 mai 2007 à 01:27
Pourquoi a la fin du for, run_config ne vaut pas 1 mais 951742 ??
void load_lang()
{
auto int i;
auto char temp_buffer[MAX_PATH];
auto int length=0;
auto char temp_str[6];
run_config=1;
memset(temp_buffer,0,MAX_PATH);
pause_timer=1;
for(i=1;i<LANG_SZ+1;i++)
{
sprintf(temp_str,"%ld",i);
length=GetPrivateProfileString("hydrid_tool_language",temp_str,"",temp_buffer,MAX_PATH,lngfile);
lang[i]=NULL;
lang[i]=malloc(sizeof(char)*(length+1));
if(!lang[i])
{
error(9,hwnd_loading);
}
strcpy(lang[i],temp_buffer);
}
pause_timer=0;
}