[matroska] r1268 - trunk/libebml/src
[email protected] Fri, 19 Jan 2007 13:15:10 +0300 (MSK)
| Newsgroups | gmane.comp.multimedia.matroska.cvs |
|---|---|
| Message-ID | <[email protected]> |
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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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] =3D=3D '\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] =3D=3D '\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 =3D vsprintf(tst,myformat,params);
=09
if (my_debug_output)
- OutputDebugString(tst);
+ OutputDebugStringA(tst);
=20
if (my_use_file && (hFile !=3D 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 =3D false;
=20
#ifdef WIN32
- hFile =3D CreateFile(NewFilename, GENERIC_WRITE, FILE_SHARE_WRITE|FILE=
_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL );
+ hFile =3D CreateFileA(NewFilename, GENERIC_WRITE, FILE_SHARE_WRITE|FIL=
E_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL );
=09
if (hFile !=3D INVALID_HANDLE_VALUE) {
SetFilePointer( hFile, 0, 0, FILE_END );