[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Win64 unicode (#332)
Nicolas Cellier
notifications at github.com
Wed Jan 2 14:11:53 UTC 2019
nicolas-cellier-aka-nice commented on this pull request.
> WCHAR buffer[256];
DWORD memSize;
/* Argh. It seems that the registry key regularly starts
with \Registry\Machine\ which doesn't work with RegOpenKey below.
I have no idea why but for now I'll just truncate that part if
we recognize it... */
- if (_strnicmp(keyName, "\\registry\\machine\\", 18) == 0) {
- memcpy(keyName, keyName+18, strlen(keyName)-17);
+ if (_wcsnicmp(keyName, L"\\registry\\machine\\", 18) == 0) {
+ memmove(keyName, keyName+18*sizeof(WCHAR), (wcslen(keyName)-17)*sizeof(WCHAR));
Fixed in 3e51616a56a0ef49b7c67a580db0f0fbaaea588f
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/332#discussion_r244744996
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190102/df02c748/attachment.html>
More information about the Vm-dev
mailing list