4.29 beta

This commit is contained in:
Igor Pavlov
2005-09-28 00:00:00 +00:00
committed by Kornel Lesiński
parent 32c73adef4
commit bcd1db2f5a
3 changed files with 13 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#define MY_VER_MAJOR 4
#define MY_VER_MINOR 28
#define MY_VERSION "4.28 beta"
#define MY_7ZIP_VERSION "7-Zip 4.28 beta"
#define MY_DATE "2005-09-27"
#define MY_VER_MINOR 29
#define MY_VERSION "4.29 beta"
#define MY_7ZIP_VERSION "7-Zip 4.29 beta"
#define MY_DATE "2005-09-28"
#define MY_COPYRIGHT "Copyright (c) 1999-2005 Igor Pavlov"
#define MY_VERSION_COPYRIGHT_DATE MY_VERSION " " MY_COPYRIGHT " " MY_DATE

View File

@@ -23,8 +23,11 @@ wchar_t MyCharUpper(wchar_t c)
if (res != 0 || ::GetLastError() != ERROR_CALL_NOT_IMPLEMENTED)
return (wchar_t)(unsigned int)res;
const int kBufferSize = 4;
char s[kBufferSize];
char s[kBufferSize + 1];
int numChars = ::WideCharToMultiByte(CP_ACP, 0, &c, 1, s, kBufferSize, 0, 0);
if (numChars == 0 || numChars > kBufferSize)
return c;
s[numChars] = 0;
::CharUpperA(s);
::MultiByteToWideChar(CP_ACP, 0, s, numChars, &c, 1);
return c;
@@ -38,8 +41,11 @@ wchar_t MyCharLower(wchar_t c)
if (res != 0 || ::GetLastError() != ERROR_CALL_NOT_IMPLEMENTED)
return (wchar_t)(unsigned int)res;
const int kBufferSize = 4;
char s[kBufferSize];
char s[kBufferSize + 1];
int numChars = ::WideCharToMultiByte(CP_ACP, 0, &c, 1, s, kBufferSize, 0, 0);
if (numChars == 0 || numChars > kBufferSize)
return c;
s[numChars] = 0;
::CharLowerA(s);
::MultiByteToWideChar(CP_ACP, 0, s, numChars, &c, 1);
return c;

View File

@@ -2,7 +2,7 @@
;Defines
!define VERSION_MAJOR 4
!define VERSION_MINOR 28
!define VERSION_MINOR 29
!define VERSION_POSTFIX_FULL " beta"
!ifdef WIN64
!ifdef IA64