kernel32: Fixes various 'profile' functions.

André Hentschel nerv at dawncrow.de
Wed Jul 6 12:16:14 CDT 2011


spotted with a quick look on it:

Am 06.07.2011 18:54, schrieb Christian Inci:
> kernel32: Fixes various 'profile' functions.
> 
> diff --git a/dlls/kernel32/profile.c b/dlls/kernel32/profile.c
> index a2bd5b5..da7661c 100644
> --- a/dlls/kernel32/profile.c
> +++ b/dlls/kernel32/profile.c
> @@ -316,6 +316,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding)
>      PROFILESECTION **next_section;
>      PROFILEKEY *key, *prev_key, **next_key;
>      DWORD dwFileSize;
> +    BOOL no_section = TRUE;
>      
>      TRACE("%p\n", hFile);
>      
> @@ -440,6 +441,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding)
>                  next_section  = &section->next;
>                  next_key      = &section->key;
>                  prev_key      = NULL;
> +                no_section = FALSE;

formatting!

> @@ -1179,6 +1183,7 @@ INT WINAPI GetPrivateProfileStringA( LPCSTR section, LPCSTR entry,
>                  ret = len - 1;
>          }
>          buffer[ret] = 0;
> +        buffer[ret+1] = 0;
>      }

really?

-- 

Best Regards, André Hentschel



More information about the wine-devel mailing list