Use shared Windows directory on TS to find regedit.exe

Ge van Geldorp ge at gse.nl
Sun Dec 28 10:26:41 CST 2008


On Terminal Server systems, there is a shared Windows directory (normally
C:\Windows) and a per-user Windows directory (e.g. C:\Documents and
Settings\user\Windows). GetWindowsDirectory() returns the per-user
directory. Regedit.exe is stored in the shared directory. The kernel32
file test constructs a full path to regedit.exe by prepending the result
of GetWindowsDirectory(), making it something like C:\Documents and
Settings\user\Windows\regedit.exe.
Fixed by using the shared Windows directory instead of the per-user
Windows directory.

---
 dlls/kernel32/tests/file.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6254d8505622afff14ad02fa06cbffa385b96f27.diff
Type: text/x-patch
Size: 1416 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081228/d6aa29d2/attachment.bin 


More information about the wine-patches mailing list