Skip to content

Commit db9c238

Browse files
committed
Fix compilation of tests with UNICODE defined.
1 parent 83899ac commit db9c238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/LoadDll.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ BOOL LoadFromMemory(char *filename)
5353
goto exit;
5454
}
5555

56-
addNumber = (addNumberProc)MemoryGetProcAddress(handle, reinterpret_cast<LPCTSTR>(0xff));
56+
addNumber = (addNumberProc)MemoryGetProcAddress(handle, reinterpret_cast<LPCSTR>(0xff));
5757
if (addNumber != NULL) {
5858
_tprintf(_T("MemoryGetProcAddress(0xff) returned %p\n"), addNumber);
5959
result = FALSE;
@@ -64,7 +64,7 @@ BOOL LoadFromMemory(char *filename)
6464
_tprintf(_T("From memory: %d\n"), addNumber(1, 2));
6565

6666
// the DLL only exports one function, try to load by ordinal value
67-
addNumber2 = (addNumberProc)MemoryGetProcAddress(handle, reinterpret_cast<LPCTSTR>(0x01));
67+
addNumber2 = (addNumberProc)MemoryGetProcAddress(handle, reinterpret_cast<LPCSTR>(0x01));
6868
if (addNumber != addNumber2) {
6969
_tprintf(_T("MemoryGetProcAddress(0x01) returned %p (expected %p)\n"), addNumber2, addNumber);
7070
result = FALSE;

0 commit comments

Comments
 (0)