Re: [edk2] ShellExecute crashing in NT emulator - [Bug Found]

2014-09-22 Thread J. E.
/8 or boot into EFI Shell 1.0 on a UEFI PC/Notebook and test it for yourself at runtime, perhaps we can confirm that it is a bug in the EDK2 source. From: af...@apple.com Date: Mon, 22 Sep 2014 17:58:53 -0700 To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] ShellExecute crashing in N

Re: [edk2] ShellExecute crashing in NT emulator - [Bug Found]

2014-09-22 Thread Andrew Fish
ng Win32 base tools > without build.exe :p (I'll figure it out..) > Base tools build from running nmake in the BaseTools dir. > From: af...@apple.com > Date: Mon, 22 Sep 2014 16:05:23 -0700 > To: edk2-devel@lists.sourceforge.net > Subject: Re: [edk2] ShellExecute crashin

Re: [edk2] ShellExecute crashing in NT emulator - [Bug Found]

2014-09-22 Thread J. E.
:05:23 -0700 To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] ShellExecute crashing in NT emulator - [Bug Found] On Sep 22, 2014, at 3:09 PM, J. E. wrote:HiI am not accessing it from my app, i am fixing a bug in udk2014. It is hard to tell from your mail as you keep showing code fragments,

Re: [edk2] ShellExecute crashing in NT emulator - [Bug Found]

2014-09-22 Thread Andrew Fish
On Sep 22, 2014, at 3:09 PM, J. E. wrote: > Hi > > I am not accessing it from my app, i am fixing a bug in udk2014. > It is hard to tell from your mail as you keep showing code fragments, and not a diff or code fragment plus what file it came from. > My app is only calling ShellExecute.

Re: [edk2] ShellExecute crashing in NT emulator - [Bug Found]

2014-09-22 Thread J. E.
M To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] ShellExecute crashing in NT emulator - [Bug Found] On Sep 21, 2014, at 11:01 PM, J. E. wrote: > I found the problem! > > *ParentHandle should not have the pointer in it. > Removing the '*' solved the problem. > &

Re: [edk2] ShellExecute crashing in NT emulator - [Bug Found]

2014-09-22 Thread Andrew Fish
status > // > if (Status != NULL) { > *Status = CmdStatus; > } > // > // If there was an error, we can't tell if it was from the command or from > // the Execute() function, so we'll just assume the shell ran successfully > // and the

Re: [edk2] ShellExecute crashing in NT emulator - [Bug Found]

2014-09-21 Thread J. E.
hines, perhaps there needs to be code added to check if the pointer is needed or not. Thanks Andrew and Tim for your help. From: nszero...@hotmail.com To: edk2-devel@lists.sourceforge.net Date: Mon, 22 Sep 2014 11:45:04 +1000 Subject: Re: [edk2] ShellExecute crashing in NT emulator I f

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-21 Thread J. E.
ume the shell ran successfully // and the error came from the command. // return EFI_SUCCESS; } return (EFI_UNSUPPORTED); } From: nszero...@hotmail.com To: edk2-devel@lists.sourceforge.net Date: Mon, 22 Sep 2014 10:54:11 +1000 Subject: Re: [edk2] ShellExecute crashing in NT emulator

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-21 Thread J. E.
s] UefiShellLib - MdeModulePkg.dsc [LibraryClasses] UefiShellLib|ShellPkg\Library\UefiShellLib/UefiShellLib.inf From: tim.le...@insyde.com To: edk2-devel@lists.sourceforge.net Date: Fri, 19 Sep 2014 16:30:18 + Subject: Re: [edk2] ShellExecute crashing in NT emulator It appears yo

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-19 Thread Andrew Fish
On Sep 18, 2014, at 10:21 PM, J. E. wrote: > Yep thats the first thing I did, search all of UDK for SHELLENV_GET_ENV using > Agent Ransack which searches binary and unicode as well. > I found nothing except for the EfiShellEnvironment2.h and UefiShellLib.lib > files. > No idea where SHELLENV_G

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-19 Thread Tim Lewis
: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] ShellExecute crashing in NT emulator Yep thats the first thing I did, search all of UDK for SHELLENV_GET_ENV using Agent Ransack which searches binary and unicode as well. I found nothing except for the EfiShellEnvironment2.h and

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-18 Thread J. E.
the code so I cant debug it. Everything compiles ok. Maybe I should download the latest source instead of using the UDK2014 release, or change the compiler to GCC or Intel. From: af...@apple.com Date: Thu, 18 Sep 2014 18:48:25 -0700 To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] ShellExec

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-18 Thread Andrew fish
gument to install protocol boot service. Thanks, Andrew Fish > > From: af...@apple.com > Date: Thu, 18 Sep 2014 16:38:51 -0700 > To: edk2-devel@lists.sourceforge.net > Subject: Re: [edk2] ShellExecute crashing in NT emulator > > > On Sep 18, 2014, at 4:24 PM, J. E. wrot

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-18 Thread J. E.
); Which c file has the actual source code? From: af...@apple.com Date: Thu, 18 Sep 2014 16:38:51 -0700 To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] ShellExecute crashing in NT emulator On Sep 18, 2014, at 4:24 PM, J. E. wrote:I am compiling and running secmain from the command

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-18 Thread Andrew Fish
ge.net > Subject: Re: [edk2] ShellExecute crashing in NT emulator > > > On Sep 18, 2014, at 6:22 AM, J. E. wrote: > > The below code is crashing the emulator, any ideas? > > Do you get a stack trace and error messages from the crash? > > Thanks, > > Andrew F

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-18 Thread J. E.
m: af...@apple.com Date: Thu, 18 Sep 2014 10:25:30 -0700 To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] ShellExecute crashing in NT emulator On Sep 18, 2014, at 6:22 AM, J. E. wrote:The below code is crashing the emulator, any ideas? Do you get a stack trace and error messages from the

Re: [edk2] ShellExecute crashing in NT emulator

2014-09-18 Thread Andrew Fish
On Sep 18, 2014, at 6:22 AM, J. E. wrote: > The below code is crashing the emulator, any ideas? Do you get a stack trace and error messages from the crash? Thanks, Andrew Fish > Is it a Windows 8 thing? (can't test a Win7 system or via proper EFI shell > right now) > > > EFI_STATUS > EFIA

[edk2] ShellExecute crashing in NT emulator

2014-09-18 Thread J. E.
The below code is crashing the emulator, any ideas?Is it a Windows 8 thing? (can't test a Win7 system or via proper EFI shell right now) EFI_STATUSEFIAPIUefiMain ( IN EFI_HANDLEImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ){EFI_STATUS Status;Status = ShellExecute(ImageHandl