kernel32: Fix uninitialised memory read in GetPrivateProfileStringA if GetPrivateProf...
authorRob Shearman <robertshearman@gmail.com>
Sun, 29 Nov 2009 10:34:19 +0000 (10:34 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Sun, 29 Nov 2009 15:42:10 +0000 (16:42 +0100)
commit47acaeaea81e566ea0c47dbc34e06acbf257037c
tree9b5c971e0b04e95119d33966d9f7271b86dd9260
parent2226b678e339aa77eb9f5b1f4a6b4ac295b2ad78
kernel32: Fix uninitialised memory read in GetPrivateProfileStringA if GetPrivateProfileStringW returns 0.

The buffer that was passed into the function will remain
uninitialised. Fix reading from this by only reading retW characters
from bufferW and manually nul-terminating the string.
dlls/kernel32/profile.c