Changeset 517


Ignore:
Timestamp:
Sep 11, 2015, 2:29:10 PM (6 years ago)
Author:
roman
Message:
 
Location:
trunk/Utilities/LogStdOutput
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/LogStdOutput/Generate/Generate.vcxproj

    r514 r517  
    2828    <ConfigurationType>Application</ConfigurationType>
    2929    <UseDebugLibraries>true</UseDebugLibraries>
    30     <PlatformToolset>v120</PlatformToolset>
     30    <PlatformToolset>v120_xp</PlatformToolset>
    3131    <CharacterSet>Unicode</CharacterSet>
    3232  </PropertyGroup>
     
    3434    <ConfigurationType>Application</ConfigurationType>
    3535    <UseDebugLibraries>true</UseDebugLibraries>
    36     <PlatformToolset>v120</PlatformToolset>
     36    <PlatformToolset>v120_xp</PlatformToolset>
    3737    <CharacterSet>Unicode</CharacterSet>
    3838  </PropertyGroup>
     
    4040    <ConfigurationType>Application</ConfigurationType>
    4141    <UseDebugLibraries>false</UseDebugLibraries>
    42     <PlatformToolset>v120</PlatformToolset>
     42    <PlatformToolset>v120_xp</PlatformToolset>
    4343    <WholeProgramOptimization>true</WholeProgramOptimization>
    4444    <CharacterSet>Unicode</CharacterSet>
     
    4747    <ConfigurationType>Application</ConfigurationType>
    4848    <UseDebugLibraries>false</UseDebugLibraries>
    49     <PlatformToolset>v120</PlatformToolset>
     49    <PlatformToolset>v120_xp</PlatformToolset>
    5050    <WholeProgramOptimization>true</WholeProgramOptimization>
    5151    <CharacterSet>Unicode</CharacterSet>
  • trunk/Utilities/LogStdOutput/LogStdOutput.cpp

    r514 r517  
    5252                        if(!nDataSize)
    5353                                break;
    54                         __E(WriteFile(hOutput, pnData, nDataSize, NULL, NULL));
     54                        // NOTE: nWriteDataSize is mandatory
     55                        //       https://social.msdn.microsoft.com/Forums/vstudio/en-US/e519816e-57c6-4b5d-9269-3ad1494eedbf/writefile-on-a-console-handle-always-fails-why?forum=vcgeneral
     56                        DWORD nWriteDataSize = 0;
     57                        __E(WriteFile(hOutput, pnData, nDataSize, &nWriteDataSize, NULL));
    5558                        __C(File.Write(pnData, nDataSize));
    5659                }
Note: See TracChangeset for help on using the changeset viewer.