Commit 46c8ab35 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

winedos: Initializations fix.

parent eaf4492c
......@@ -2182,6 +2182,7 @@ static BOOL INT21_FileAttributes( CONTEXT86 *context,
else
{
TRACE( "SET FILE CREATION DATE AND TIME, file %s\n", fileA );
MultiByteToWideChar(CP_OEMCP, 0, fileA, -1, fileW, MAX_PATH);
handle = CreateFileW( fileW, GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
......@@ -2207,8 +2208,8 @@ static BOOL INT21_FileAttributes( CONTEXT86 *context,
INT_BARF( context, 0x21 );
else
{
TRACE( "GET FILE CREATION DATE AND TIME, handle %d\n",
BX_reg(context) );
TRACE( "GET FILE CREATION DATE AND TIME, file %s\n", fileA );
MultiByteToWideChar(CP_OEMCP, 0, fileA, -1, fileW, MAX_PATH);
handle = CreateFileW( fileW, GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment