Call GetProcessHeap() instead of passing it's address

svn path=/trunk/; revision=11079
This commit is contained in:
Gé van Geldorp 2004-09-26 19:17:21 +00:00
parent 6375fca5be
commit 409e2330e1

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)