Commit c0250a50 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Fixed memory corruption with CoTaskMemRealloc.

parent a51c6038
......@@ -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)
......
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