"Anatoly Lyutin" vostok@etersoft.ru wrote:
static DWORD (WINAPI *pGetLongPathNameA)(LPCSTR,LPSTR,DWORD); static DWORD (WINAPI *pGetLongPathNameW)(LPWSTR,LPWSTR,DWORD); +static DWORD (WINAPI *pGetShortPathNameW)(LPWSTR,LPWSTR,DWORD);
I don't see where pGetShortPathNameW is initialized.
I have decided that no need to check implemention of this function.
But you still have to call GetProcAddress to initialize a function pointer.
Do you really need the test to use cyrillic characters? That won't work if underlying unix locale is not russian regardless what you set the thread locale to.
Hmm. How to do this better?May be to check locale and if it is non UTF8 skip this test?
Plain ASCII characters should work just fine since you don't check the resulting names anyway.