|
|
@@ -37,6 +37,8 @@
|
|
|
#include "pthread.h"
|
|
|
#include "implement.h"
|
|
|
|
|
|
+#include <tchar.h>
|
|
|
+
|
|
|
/*
|
|
|
* Handle to quserex.dll
|
|
|
*/
|
|
|
@@ -80,8 +82,8 @@ pthread_win32_process_attach_np ()
|
|
|
}
|
|
|
#else
|
|
|
/* strncat is secure - this is just to avoid a warning */
|
|
|
- if(GetSystemDirectory(QuserExDLLPathBuf, sizeof(QuserExDLLPathBuf)) &&
|
|
|
- 0 == strncat_s(QuserExDLLPathBuf, sizeof(QuserExDLLPathBuf), "\\QUSEREX.DLL", 12))
|
|
|
+ if(GetSystemDirectory(QuserExDLLPathBuf, sizeof(QuserExDLLPathBuf) / sizeof(TCHAR)) &&
|
|
|
+ 0 == _tcsncat_s(QuserExDLLPathBuf, sizeof(QuserExDLLPathBuf) / sizeof(TCHAR), TEXT("\\QUSEREX.DLL"), 12))
|
|
|
{
|
|
|
ptw32_h_quserex = LoadLibrary(QuserExDLLPathBuf);
|
|
|
}
|