Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext: remove unused WideCharToLocal

Changeset 151c3815242d

Parent 7dbb91413c9c

by Adrian Buehlmann

Changes to 2 files · Browse files at 151c3815242d Showing diff from parent 7dbb91413c9c Diff from another changeset...

 
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
8
9
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
12
13
@@ -8,26 +8,6 @@
 #include "FCNTL.H"     -int WideCharToLocal(LPTSTR pLocal, LPWSTR pWide, DWORD dwChars) -{ - *pLocal = 0; - - #ifdef UNICODE - lstrcpyn(pLocal, pWide, dwChars); - #else - WideCharToMultiByte( CP_ACP, - 0, - pWide, - -1, - pLocal, - dwChars, - NULL, - NULL); - #endif - - return lstrlen(pLocal); -} -  int LocalToWideChar(LPWSTR pWide, LPTSTR pLocal, DWORD dwChars)  {   *pWide = 0;
 
6
7
8
9
10
11
12
 
6
7
8
 
9
10
11
@@ -6,7 +6,6 @@
 #include <string>    int LocalToWideChar(LPWSTR pWide, LPTSTR pLocal, DWORD dwChars); -int WideCharToLocal(LPTSTR pLocal, LPWSTR pWide, DWORD dwChars);    #define _MBSTR(wstr) hf_wctomb((LPSTR)alloca(wcslen(wstr) + 1), (wstr),wcslen(wstr) + 1)  #define _WCSTR(str) hf_mbtowc((LPWSTR)alloca((strlen(str) + 1) * sizeof(WCHAR)),(str),strlen(str) + 1)