mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Call GetProcessHeap() instead of passing it's address
svn path=/trunk/; revision=11079
This commit is contained in:
parent
6375fca5be
commit
409e2330e1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue