From: <mie...@us...> - 2009-04-16 05:14:45
|
Revision: 4400 http://oorexx.svn.sourceforge.net/oorexx/?rev=4400&view=rev Author: miesfeld Date: 2009-04-16 05:14:42 +0000 (Thu, 16 Apr 2009) Log Message: ----------- [2767480] WindowsRegistry open fails with ALL/default access Modified Paths: -------------- main/branches/4.0beta/trunk/extensions/platform/windows/rxwinsys/rxwinsys.cpp Modified: main/branches/4.0beta/trunk/extensions/platform/windows/rxwinsys/rxwinsys.cpp =================================================================== --- main/branches/4.0beta/trunk/extensions/platform/windows/rxwinsys/rxwinsys.cpp 2009-04-16 05:08:40 UTC (rev 4399) +++ main/branches/4.0beta/trunk/extensions/platform/windows/rxwinsys/rxwinsys.cpp 2009-04-16 05:14:42 UTC (rev 4400) @@ -309,7 +309,10 @@ RET_HANDLE(hk); // return the predefined handle } - if ((argc < 4) || strcmp(argv[3].strptr,"ALL")) + // Docs say, have always said, that the access arg can be more than one + // keyword. So, even if "ALL" makes the other keywords unnecessary, we + // can't rely on it being the only word in the string. + if ((argc < 4) || strstr(argv[3].strptr,"ALL") != 0) { access = KEY_ALL_ACCESS; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |