> You don't need a reboot, you can test it on a private environment, or

> modify the environment of the current process. In fact we already have

> tests for RtlQueryEnvironmentVariable_U(), and that's how they are

> implemented.


Well, the problem only ever occured when going over the registry, that's why I meant I can't test it without reboot Unless I'm missing something here, but on windows I can't get the program to get an updated environment unless I restart the system.

 

I did some more testing, and the problem is that Wine populates the PEB Environment differently. So the problem is not actually RtlQueryEnvironmentVariable_U, but how the environment is loaded from the registry. An idea how I would write a test for that?

 

Regards,

Fabian Maurer