sync kernel32 profile with wine 1.1.28

svn path=/trunk/; revision=42909
This commit is contained in:
Christoph von Wittich 2009-08-24 12:17:02 +00:00
parent 2296d0a5dd
commit e080831a72

View file

@ -16,7 +16,7 @@
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include <k32.h> #include <k32.h>
@ -383,13 +383,13 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding)
case ENCODING_UTF16LE: case ENCODING_UTF16LE:
DPRINT("UTF16 Little Endian encoding\n"); DPRINT("UTF16 Little Endian encoding\n");
szFile = pBuffer;// + 1; szFile = pBuffer;
szEnd = (WCHAR *)((char *)pBuffer + dwFileSize); szEnd = (WCHAR *)((char *)pBuffer + dwFileSize);
break; break;
case ENCODING_UTF16BE: case ENCODING_UTF16BE:
DPRINT("UTF16 Big Endian encoding\n"); DPRINT("UTF16 Big Endian encoding\n");
szFile = pBuffer;// + 1; szFile = pBuffer;
szEnd = (WCHAR *)((char *)pBuffer + dwFileSize); szEnd = (WCHAR *)((char *)pBuffer + dwFileSize);
PROFILE_ByteSwapShortBuffer(szFile, dwFileSize / sizeof(WCHAR)); PROFILE_ByteSwapShortBuffer(szFile, dwFileSize / sizeof(WCHAR));
break; break;
@ -1611,12 +1611,12 @@ BOOL WINAPI WriteProfileSectionW( LPCWSTR section, LPCWSTR keys_n_values)
* Win95: * Win95:
* - if the buffer is 0 or 1 character long then it is as if it was of * - if the buffer is 0 or 1 character long then it is as if it was of
* infinite length. * infinite length.
* - otherwise, if the buffer is to small only the section names that fit * - otherwise, if the buffer is too small only the section names that fit
* are returned. * are returned.
* - note that this means if the buffer was to small to return even just * - note that this means if the buffer was too small to return even just
* the first section name then a single '\0' will be returned. * the first section name then a single '\0' will be returned.
* - the return value is the number of characters written in the buffer, * - the return value is the number of characters written in the buffer,
* except if the buffer was too smal in which case len-2 is returned * except if the buffer was too small in which case len-2 is returned
* *
* Win2000: * Win2000:
* - if the buffer is 0, 1 or 2 characters long then it is filled with * - if the buffer is 0, 1 or 2 characters long then it is filled with