[Bug 21512] Windows PowerShell 1.x/2.x needs HKEY_CURRENT_USER\Environment registry key present

wine-bugs at winehq.org wine-bugs at winehq.org
Wed May 9 16:47:44 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=21512

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |regression
             Status|CLOSED                      |REOPENED
         Resolution|FIXED                       |
     Ever Confirmed|0                           |1

--- Comment #4 from Anastasius Focht <focht at gmx.net> 2012-05-09 16:47:44 CDT ---
Hello,

reopening.
This issue was fixed 2 years ago with commit
http://source.winehq.org/git/wine.git/commit/49be8db6b1f16518cafb0a7fba12f53dd9941191)
and seems to have reappeared (last time I tested was long ago).

"HKEY_CURRENT_USER\Environment" is no longer present -> bug

"HKEY_CURRENT_USER\Volatile Environment" is present.

--- snip ---
...
002b:Call advapi32.RegOpenKeyExW(80000001,790e367c
L"Environment",00000000,00020019,0032ea54) ret=0039a6a7
002b:Call ntdll.RtlInitUnicodeString(0032e980,790e367c L"Environment")
ret=7ed66502
002b:Ret  ntdll.RtlInitUnicodeString() retval=0032e980 ret=7ed66502
002b:Call ntdll.NtOpenKey(0032ea54,00020019,0032e988) ret=7ed65bdb
002b:Ret  ntdll.NtOpenKey() retval=c0000034 ret=7ed65bdb
002b:Call ntdll.RtlNtStatusToDosError(c0000034) ret=7ed66526
002b:Ret  ntdll.RtlNtStatusToDosError() retval=00000002 ret=7ed66526
002b:Ret  advapi32.RegOpenKeyExW() retval=00000002 ret=0039a6a7
002b:Call KERNEL32.InterlockedCompareExchange(00763448,00000004,00000008)
ret=79eb089c
002b:Ret  KERNEL32.InterlockedCompareExchange() retval=00000008 ret=79eb089c
002b:trace:seh:raise_exception code=c0000005 flags=0 addr=0x793f3852
ip=793f3852 tid=002b
002b:trace:seh:raise_exception  info[0]=00000000
002b:trace:seh:raise_exception  info[1]=00000000
002b:trace:seh:raise_exception  eax=00000000 ebx=008d923c ecx=00000000
edx=008d7f4c esi=00000001 edi=008d7f4c
002b:trace:seh:raise_exception  ebp=0032eb00 esp=0032eacc cs=0023 ds=002b
es=002b fs=0063 gs=006b flags=00010246
002b:trace:seh:call_stack_handlers calling handler at 0x79f07fee code=c0000005
flags=0 
...
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. ---> System.NullReferenceException:
Object reference not set to an instance of an object.
   at System.Environment.GetEnvironmentVariable(String variable,
EnvironmentVariableTarget target)
   at System.Management.Automation.ModuleIntrinsics.SetModulePath()
   at
System.Management.Automation.ExecutionContext.InitializeCommon(AutomationEngine
engine, PSHost hostInterface)
   at System.Management.Automation.ExecutionContext..ctor(AutomationEngine
engine, PSHost hostInterface, RunspaceConfiguration runspaceConfiguration)
   at System.Management.Automation.AutomationEngine..ctor(PSHost hostInterface,
RunspaceConfiguration runspaceConfiguration, InitialSessionState iss)
   at System.Management.Automation.Runspaces.LocalRunspace.DoOpenHelper()
   at System.Management.Automation.Runspaces.LocalRunspace.OpenHelper(Boolean
syncCall)
   at System.Management.Automation.Runspaces.RunspaceBase.CoreOpen(Boolean
syncCall)
   at System.Management.Automation.Runspaces.RunspaceBase.Open()
...
--- snip ---

$ wine --version
wine-1.5.3-243-g9c0486d

Regards

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list