Commit 978a9317 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

kernel32: Don't get the profile string if the buffer length is zero.

parent 97429b32
......@@ -957,7 +957,7 @@ static INT PROFILE_GetString( LPCWSTR section, LPCWSTR key_name,
PROFILEKEY *key = NULL;
static const WCHAR empty_strW[] = { 0 };
if(!buffer) return 0;
if(!buffer || !len) return 0;
if (!def_val) def_val = empty_strW;
if (key_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment