| 2734 | } |
| 2735 | |
| 2736 | static int GetUnicodeFileName(const char * name, LPWSTR buf, int nBufSize) |
| 2737 | { |
| 2738 | memset(buf, 0, nBufSize*sizeof(TCHAR)); |
| 2739 | |
| 2740 | int n = MultiByteToWideChar(CP_ACP, // code page |
| 2741 | 0, // character-type options |
| 2742 | name, // string to map |
| 2743 | -1, // number of bytes in string |
| 2744 | buf, // wide-character buffer |
| 2745 | nBufSize); // size of buffer |
| 2746 | |
| 2747 | return n; |
| 2748 | } |
| 2749 | |
| 2750 | #endif |
| 2751 |
no outgoing calls
no test coverage detected