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

undefined 'byte' #41

Open
d3x0r opened this issue Feb 19, 2017 · 0 comments
Open

undefined 'byte' #41

d3x0r opened this issue Feb 19, 2017 · 0 comments
Labels

Comments

@d3x0r
Copy link
Contributor

d3x0r commented Feb 19, 2017

https://github.com/CatalystCode/windows-registry-node/blob/master/lib/registry.js#L109

            case windef.REG_VALUE_TYPE.REG_DWORD:
            case windef.REG_VALUE_TYPE.REG_DWORD_BIG_ENDIAN:
            case windef.REG_VALUE_TYPE.REG_DWORD_LITTLE_ENDIAN:
                buffer = new Buffer(4, value);
                result = advApi.RegSetValueExA(key.handle.deref(), valueName, null, valueType, byte.deref(), buffer.length);
                break;

byte.deref() fails; 'cannot read property 'deref' of undefined'

because... it's not defined.

@ritazh ritazh added the bug label Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants