Call GetProcessHeap() instead of passing its address.
This commit is contained in:
parent
54be3001b4
commit
535387aeb1
@ -142,7 +142,7 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
|
|||||||
HWND htxt = NULL ;
|
HWND htxt = NULL ;
|
||||||
if ((ic = GetWindowTextLengthA (htxt = GetDlgItem (hwnd, 12298))))
|
if ((ic = GetWindowTextLengthA (htxt = GetDlgItem (hwnd, 12298))))
|
||||||
{
|
{
|
||||||
psz = HeapAlloc( GetProcessHeap, 0, (ic + 2) );
|
psz = HeapAlloc( GetProcessHeap(), 0, (ic + 2) );
|
||||||
GetWindowTextA (htxt, psz, ic + 1) ;
|
GetWindowTextA (htxt, psz, ic + 1) ;
|
||||||
|
|
||||||
if (ShellExecuteA(NULL, "open", psz, NULL, NULL, SW_SHOWNORMAL) < (HINSTANCE)33)
|
if (ShellExecuteA(NULL, "open", psz, NULL, NULL, SW_SHOWNORMAL) < (HINSTANCE)33)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user