Skip to content
Browse files

Adjusted payload and implementation for consistency with other platfo…

…rms. Adjusted permissions of node-ffi binaries so that they are executable again (!)
  • Loading branch information...
1 parent a83d70e commit 3d07f37b97dd0e8940702d0acd349f9e3092e6ec @amb26 committed
View
2 gpii/node_modules/registrySettingsHandler/README.md
@@ -4,6 +4,6 @@ Run basic self-test with
node node_modules\registrySettingsHandler
-Run a settingsHandler payload with, for example,
+Run a settingsHandler payload with, for example, from directory "gpii",
node node_modules\registrySettingsHandler ../test/testPayload.json
View
10 gpii/node_modules/registrySettingsHandler/src/RegistrySettingsHandler.js
@@ -295,12 +295,12 @@ windows.deleteRegistryKey = function (baseKey, path) {
};
windows.registrySettingsHandler = function (payload) {
- var key = payload.options.hKey;
+ var baseKey = payload.options.hKey;
var path = payload.options.path;
- var results = fluid.transform(payload.settings, function(value) {
- var oldValue = windows.readRegistryKey(key, path, value.path, value.dataType);
- var writeStatus = windows.writeRegistryKey(key, path, value.path, value.value, value.dataType);
- var newValue = windows.readRegistryKey(key, path, value.path, value.dataType);
+ var results = fluid.transform(payload.settings, function(value, key) {
+ var oldValue = windows.readRegistryKey(baseKey, path, key, value.dataType);
+ var writeStatus = windows.writeRegistryKey(baseKey, path, key, value.value, value.dataType);
+ var newValue = windows.readRegistryKey(baseKey, path, key, value.dataType);
return {
oldValue: oldValue.value,
statusCode: writeStatus.statusCode,
View
6 gpii/node_modules/registrySettingsHandler/test/testPayload.json
@@ -4,13 +4,11 @@
"path": "Software\\GPIIMagnifierTest"
},
"settings": {
- "magnification": {
- "path": "Magnification",
+ "Magnification": {
"value": 100,
"dataType": "REG_DWORD"
},
- "magnificationString": {
- "path": "MagnificationString",
+ "MagnificationString": {
"value": "Very Big",
"dataType": "REG_SZ"
}
View
0 node_modules/node-ffi/compiled/darwin/x64/ffi_bindings.node 100644 → 100755
File mode changed.
View
0 node_modules/node-ffi/compiled/linux/ia32/ffi_bindings.node 100644 → 100755
File mode changed.
View
0 node_modules/node-ffi/compiled/linux/x64/ffi_bindings.node 100644 → 100755
File mode changed.
View
0 node_modules/node-ffi/compiled/sunos/ia32/ffi_bindings.node 100644 → 100755
File mode changed.
View
0 node_modules/node-ffi/compiled/win32/ia32/ffi_bindings.node 100644 → 100755
File mode changed.

0 comments on commit 3d07f37

Please sign in to comment.
Something went wrong with that request. Please try again.