Marcus Meissner : shdocvw: Fixed buffer size to GetPrivateProfileStringW.

Alexandre Julliard julliard at winehq.org
Mon Nov 17 09:14:15 CST 2008


Module: wine
Branch: master
Commit: bc295ef8b4978e384a57e33c731cfc09e0cc706e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bc295ef8b4978e384a57e33c731cfc09e0cc706e

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sun Nov 16 10:32:37 2008 +0100

shdocvw: Fixed buffer size to GetPrivateProfileStringW.

---

 dlls/shdocvw/intshcut.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/shdocvw/intshcut.c b/dlls/shdocvw/intshcut.c
index 01da03e..fd5e5bf 100644
--- a/dlls/shdocvw/intshcut.c
+++ b/dlls/shdocvw/intshcut.c
@@ -329,7 +329,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
     {
         DWORD len = 128;
         DWORD r;
-        WCHAR *url = CoTaskMemAlloc(len);
+        WCHAR *url = CoTaskMemAlloc(len*sizeof(WCHAR));
         if (url != NULL)
         {
             r = GetPrivateProfileStringW(str_header, str_URL, NULL, url, len, pszFileName);




More information about the wine-cvs mailing list