Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WoW64 File System Redirector patch #2

Merged
merged 2 commits into from
Feb 28, 2012
Merged

Conversation

xyzzy-17-638
Copy link

xyzzy Part17 の >>638 です。

グローバル変数 *wow64-enable-file-system-redirector* を追加しました。
値を t にすると、WoW64 ファイルシステムリダイレクタが動作します。
値を nil にすると、リダイレクタの動作を抑制します。
初期値は t になっています。

例:.xyzzy に以下のようなコードを入れると、リダイレクトが抑制されます。

; WoW64リダイレクトを抑制する
(when (boundp '*wow64-enable-file-system-redirector*)
      (setq *wow64-enable-file-system-redirector* nil))

(1) Fix bad path interpretation.

xyzzy have a problem with WoW64 system.
xyzzy can't open some files such as :

    C:\Windows\System32\drivers\etc\hosts
    C:\Windows\Sysnative\drivers\etc\hosts
    C:\Windows\System32\spool\drivers\color\D50.camp

This patch will fix those problems.

(2) Add a global variable *wow64-enable-file-system-redirector* as file system redirector switch.

*wow64-enable-file-system-redirector* is a boolean variable.
Set this variable to "t" to enable WoW64 File System Redirector,
or "nil" to disable redirecting. The default value is "t".
In 0.2.3.x, WINFS::CreateFile() is called before init_symbol_value_once().
This call path is different from 0.2.2.235.
So add a NULL checking for lisp-c variable Vwow64_enable_file_system_redirector.
@mumurik mumurik closed this Feb 28, 2012
@mumurik
Copy link
Owner

mumurik commented Feb 28, 2012

Thank you!

@mumurik mumurik reopened this Feb 28, 2012
mumurik added a commit that referenced this pull request Feb 28, 2012
WoW64 File System Redirector patch
@mumurik mumurik merged commit 20837ed into mumurik:master Feb 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants