~ubuntu-branches/ubuntu/vivid/unrar-nonfree/vivid

« back to all changes in this revision

Viewing changes to resource.cpp

  • Committer: Package Import Robot
  • Author(s): Martin Meredith
  • Date: 2015-02-03 12:58:01 UTC
  • mfrom: (1.1.18) (5.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20150203125801-od6ev8cqy1er51vz
Tags: 1:5.2.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#ifndef RARDLL
6
6
const wchar *St(MSGID StringId)
7
7
{
8
 
  static wchar StrTable[8][512];
9
 
  static int StrNum=0;
10
 
  if (++StrNum >= sizeof(StrTable)/sizeof(StrTable[0]))
11
 
    StrNum=0;
12
 
  wchar *Str=StrTable[StrNum];
13
 
  *Str=0;
14
 
  CharToWide(StringId,Str,ASIZE(StrTable[0]));
15
 
  return Str;
 
8
  return StringId;
16
9
}
17
10
#endif
18
11