We can now at least compile the whole VM and main plugins with -DUNICODE You can view, comment on, or merge this pull request online at:https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/332 Commit Summary
File Changes
Patch Links:
— |
@nicolas-cellier-aka-nice pushed 1 commit.
— |
In reply to this post by David T Lewis
@nicolas-cellier-aka-nice pushed 1 commit.
— |
In reply to this post by David T Lewis
@nicolas-cellier-aka-nice pushed 1 commit.
— |
In reply to this post by David T Lewis
@nicolas-cellier-aka-nice pushed 1 commit.
— |
In reply to this post by David T Lewis
@nicolas-cellier-aka-nice pushed 1 commit.
— |
In reply to this post by David T Lewis
@nicolas-cellier-aka-nice commented on this pull request. In platforms/win32/vm/sqWin32Main.c: > 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)); Err: — |
In reply to this post by David T Lewis
@nicolas-cellier-aka-nice pushed 1 commit.
— |
In reply to this post by David T Lewis
@nicolas-cellier-aka-nice commented on this pull request. In platforms/win32/vm/sqWin32Main.c: > 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 3e51616 — |
In reply to this post by David T Lewis
Merged #332 into Cog. — |
Free forum by Nabble | Edit this page |