Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c0e6c94a
Commit
c0e6c94a
authored
Aug 17, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Aug 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Store the "%ld bytes" string as a resource.
parent
47b40c58
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
78 additions
and
2 deletions
+78
-2
resource.h
dlls/shlwapi/resource.h
+2
-0
shlwapi_De.rc
dlls/shlwapi/shlwapi_De.rc
+5
-0
shlwapi_En.rc
dlls/shlwapi/shlwapi_En.rc
+5
-0
shlwapi_Eo.rc
dlls/shlwapi/shlwapi_Eo.rc
+5
-0
shlwapi_Es.rc
dlls/shlwapi/shlwapi_Es.rc
+5
-0
shlwapi_Fi.rc
dlls/shlwapi/shlwapi_Fi.rc
+5
-0
shlwapi_Fr.rc
dlls/shlwapi/shlwapi_Fr.rc
+5
-0
shlwapi_Hu.rc
dlls/shlwapi/shlwapi_Hu.rc
+5
-0
shlwapi_It.rc
dlls/shlwapi/shlwapi_It.rc
+5
-0
shlwapi_Ja.rc
dlls/shlwapi/shlwapi_Ja.rc
+5
-0
shlwapi_Ko.rc
dlls/shlwapi/shlwapi_Ko.rc
+5
-0
shlwapi_Nl.rc
dlls/shlwapi/shlwapi_Nl.rc
+5
-0
shlwapi_No.rc
dlls/shlwapi/shlwapi_No.rc
+5
-0
shlwapi_Pt.rc
dlls/shlwapi/shlwapi_Pt.rc
+5
-0
shlwapi_Tr.rc
dlls/shlwapi/shlwapi_Tr.rc
+5
-0
string.c
dlls/shlwapi/string.c
+6
-2
No files found.
dlls/shlwapi/resource.h
View file @
c0e6c94a
...
...
@@ -20,6 +20,8 @@
#ifndef WINE_SHLWAPI_RESOURCE_H
#define WINE_SHLWAPI_RESOURCE_H
#define IDS_BYTES_FORMAT 64
/* These numbers match native ID's and shouldn't be abitrarily changed */
#define IDD_ERR_DIALOG 0x1200
#define IDS_ERR_USER_MSG 0x1201
...
...
dlls/shlwapi/shlwapi_De.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Ja" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&Nein" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_En.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Yes" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&No" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Eo.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Jes" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&Ne" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Es.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&S" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&No" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Fi.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Kyll" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&Ei" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Fr.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Oui" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&Non" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Hu.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Igen" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&Nem" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_It.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Si" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&No" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Ja.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 9, "MS UI Gothic"
PUSHBUTTON L"はい(&Y)" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"いいえ(&N)" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Ko.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"예(&Y)" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"아니오(&N)" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Nl.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Ja" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&Nee" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_No.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Ja" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&Nei" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Pt.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Sim" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&Não" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/shlwapi_Tr.rc
View file @
c0e6c94a
...
...
@@ -33,3 +33,8 @@ FONT 8, "MS Shell Dlg"
PUSHBUTTON L"&Evet" IDYES, 105, 40, 50, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON L"&Hayr" IDNO, 160, 40, 50, 14, WS_GROUP | WS_TABSTOP
}
STRINGTABLE DISCARDABLE
{
IDS_BYTES_FORMAT "%ld bytes"
}
dlls/shlwapi/string.c
View file @
c0e6c94a
...
...
@@ -42,6 +42,8 @@
#include "wine/unicode.h"
#include "wine/debug.h"
#include "resource.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
shell
);
/* Get a function pointer from a DLL handle */
...
...
@@ -55,6 +57,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell);
} while (0)
extern
HMODULE
SHLWAPI_hmlang
;
extern
HINSTANCE
shlwapi_hInstance
;
typedef
HRESULT
(
WINAPI
*
fnpConvertINetUnicodeToMultiByte
)(
LPDWORD
,
DWORD
,
LPCWSTR
,
LPINT
,
LPSTR
,
LPINT
);
static
fnpConvertINetUnicodeToMultiByte
pConvertINetUnicodeToMultiByte
;
...
...
@@ -2230,7 +2233,6 @@ typedef struct tagSHLWAPI_BYTEFORMATS
*/
LPWSTR
WINAPI
StrFormatByteSizeW
(
LONGLONG
llBytes
,
LPWSTR
lpszDest
,
UINT
cchMax
)
{
static
const
WCHAR
wszBytes
[]
=
{
'%'
,
'l'
,
'd'
,
' '
,
'b'
,
'y'
,
't'
,
'e'
,
's'
,
0
};
static
const
WCHAR
wsz3_0
[]
=
{
'%'
,
'3'
,
'.'
,
'0'
,
'f'
,
0
};
static
const
WCHAR
wsz3_1
[]
=
{
'%'
,
'3'
,
'.'
,
'1'
,
'f'
,
0
};
static
const
WCHAR
wsz3_2
[]
=
{
'%'
,
'3'
,
'.'
,
'2'
,
'f'
,
0
};
...
...
@@ -2272,7 +2274,9 @@ LPWSTR WINAPI StrFormatByteSizeW(LONGLONG llBytes, LPWSTR lpszDest, UINT cchMax)
if
(
llBytes
<
1024
)
/* 1K */
{
snprintfW
(
lpszDest
,
cchMax
,
wszBytes
,
(
long
)
llBytes
);
WCHAR
wszBytesFormat
[
64
];
LoadStringW
(
shlwapi_hInstance
,
IDS_BYTES_FORMAT
,
wszBytesFormat
,
64
);
snprintfW
(
lpszDest
,
cchMax
,
wszBytesFormat
,
(
long
)
llBytes
);
return
lpszDest
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment