Call GetProcessHeap() instead of passing its address.

This commit is contained in:
Ge van Geldorp 2004-09-27 20:34:49 +00:00 committed by Alexandre Julliard
parent 54be3001b4
commit 535387aeb1

View File

@ -142,7 +142,7 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
HWND htxt = NULL ;
if ((ic = GetWindowTextLengthA (htxt = GetDlgItem (hwnd, 12298))))
{
psz = HeapAlloc( GetProcessHeap, 0, (ic + 2) );
psz = HeapAlloc( GetProcessHeap(), 0, (ic + 2) );
GetWindowTextA (htxt, psz, ic + 1) ;
if (ShellExecuteA(NULL, "open", psz, NULL, NULL, SW_SHOWNORMAL) < (HINSTANCE)33)