Fixed memory corruption with CoTaskMemRealloc.

This commit is contained in:
Marcus Meissner 2000-03-19 12:46:20 +00:00 committed by Alexandre Julliard
parent a51c603848
commit c0250a504a
1 changed files with 1 additions and 2 deletions

View File

@ -1467,8 +1467,7 @@ HRESULT WINAPI GetClassFile(LPOLESTR filePathName,CLSID *pclsid)
if (res==ERROR_MORE_DATA){
CoTaskMemRealloc(progId,sizeProgId);
progId = CoTaskMemRealloc(progId,sizeProgId);
res=RegQueryValueW(HKEY_CLASSES_ROOT,extention,progId,&sizeProgId);
}
if (res==ERROR_SUCCESS)