Ignore:
Timestamp:
Oct 23, 2000, 9:35:11 PM (25 years ago)
Author:
sandervl
Message:

lstrcpynAtoW/WtoA fixes (Wine depends on 0 terminating of these functions) + console changes for methods that depended on the old behaviour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/conin.cpp

    r4502 r4525  
    1 /* $Id: conin.cpp,v 1.13 2000-10-20 11:46:45 sandervl Exp $ */
     1/* $Id: conin.cpp,v 1.14 2000-10-23 19:35:10 sandervl Exp $ */
    22
    33/*
     
    3737#include <misc.h>
    3838#include <string.h>
     39#include <stdlib.h>
    3940
    4041#include "conwin.h"          // Windows Header for console only
     
    745746  /* Ascii -> unicode translation */
    746747  if (dwResult == TRUE)
    747     lstrcpynAtoW((LPWSTR)lpvBuffer, lpstrAscii, *lpcchRead);
     748    lstrcpynAtoW((LPWSTR)lpvBuffer, lpstrAscii, min(cchToRead, *lpcchRead+1));
    748749
    749750  HEAP_free(lpstrAscii);
Note: See TracChangeset for help on using the changeset viewer.