mirror of
https://github.com/jamesstringer90/appsandbox.git
synced 2026-10-19 01:31:28 -05:00
Fix Windows prerequisite detection on non-English systems
Request English DISM output so the existing feature-state parser works on localized Windows installations. Fixes #155.
This commit is contained in:
1 parent
195b9383fc
commit
9345260bed
1 file changed
+1
-1
@@ -20,7 +20,7 @@ BOOL prereq_is_feature_enabled(const wchar_t *feature_name)
|
||||
DWORD bytes_read = 0;
|
||||
|
||||
_snwprintf_s(cmd, 512, _TRUNCATE,
|
||||
L"C:\\Windows\\System32\\dism.exe /online /Get-FeatureInfo /FeatureName:%ls",
|
||||
L"C:\\Windows\\System32\\dism.exe /English /online /Get-FeatureInfo /FeatureName:%ls",
|
||||
feature_name);
|
||||
|
||||
ZeroMemory(&sa, sizeof(sa));
|
||||
|
||||
Reference in new issue
Block a user