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 LocalToWideChar

Changeset 6770c87d5ef0

Parent 151c3815242d

by Adrian Buehlmann

Changes to 2 files · Browse files at 6770c87d5ef0 Showing diff from parent 151c3815242d 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
 
8
9
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
12
13
@@ -8,24 +8,6 @@
 #include "FCNTL.H"     -int LocalToWideChar(LPWSTR pWide, LPTSTR pLocal, DWORD dwChars) -{ - *pWide = 0; - - #ifdef UNICODE - lstrcpyn(pWide, pLocal, dwChars); - #else - MultiByteToWideChar( CP_ACP, - 0, - pLocal, - -1, - pWide, - dwChars); - #endif - - return lstrlenW(pWide); -} -  LPWSTR hf_mbtowc(LPWSTR lpw, LPCSTR lpa, int nChars)  {   assert(lpa != NULL);
 
5
6
7
8
9
10
11
12
 
5
6
7
 
 
8
9
10
@@ -5,8 +5,6 @@
 #include <windows.h>  #include <string>   -int LocalToWideChar(LPWSTR pWide, LPTSTR pLocal, 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)