[Matroska-cvs] [matroska] r1268 - trunk/libebml/src
robux4 at matroska.org
robux4 at matroska.org
Fri Jan 19 11:15:10 CET 2007
Author: robux4
Date: 2007-01-19 13:15:08 +0300 (Fri, 19 Jan 2007)
New Revision: 1268
Modified:
trunk/libebml/src/Debug.cpp
Log:
build even in a Unicode environment
Modified: trunk/libebml/src/Debug.cpp
===================================================================
--- trunk/libebml/src/Debug.cpp 2007-01-19 09:58:25 UTC (rev 1267)
+++ trunk/libebml/src/Debug.cpp 2007-01-19 10:15:08 UTC (rev 1268)
@@ -84,7 +84,7 @@
SYSTEMTIME time;
GetSystemTime(&time);
if (prefix[0] == '\0')
- wsprintf(myformat,"%04d/%02d/%02d %02d:%02d:%02d.%03d UTC : %s\r\n",
+ wsprintfA(myformat,"%04d/%02d/%02d %02d:%02d:%02d.%03d UTC : %s\r\n",
time.wYear,
time.wMonth,
time.wDay,
@@ -94,7 +94,7 @@
time.wMilliseconds,
format);
else
- wsprintf(myformat,"%04d/%02d/%02d %02d:%02d:%02d.%03d UTC : %s - %s\r\n",
+ wsprintfA(myformat,"%04d/%02d/%02d %02d:%02d:%02d.%03d UTC : %s - %s\r\n",
time.wYear,
time.wMonth,
time.wDay,
@@ -106,19 +106,19 @@
format);
} else {
if (prefix[0] == '\0')
- wsprintf( myformat, "%s\r\n", format);
+ wsprintfA( myformat, "%s\r\n", format);
else
- wsprintf( myformat, "%s - %s\r\n", prefix, format);
+ wsprintfA( myformat, "%s - %s\r\n", prefix, format);
}
result = vsprintf(tst,myformat,params);
if (my_debug_output)
- OutputDebugString(tst);
+ OutputDebugStringA(tst);
if (my_use_file && (hFile != NULL)) {
SetFilePointer( hFile, 0, 0, FILE_END );
DWORD written;
- WriteFile( hFile, tst, lstrlen(tst), &written, NULL );
+ WriteFile( hFile, tst, lstrlenA(tst), &written, NULL );
}
#else
if (my_time_included) {
@@ -192,7 +192,7 @@
result = false;
#ifdef WIN32
- hFile = CreateFile(NewFilename, GENERIC_WRITE, FILE_SHARE_WRITE|FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL );
+ hFile = CreateFileA(NewFilename, GENERIC_WRITE, FILE_SHARE_WRITE|FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL );
if (hFile != INVALID_HANDLE_VALUE) {
SetFilePointer( hFile, 0, 0, FILE_END );
More information about the Matroska-cvs
mailing list