Skip to content

Commit

Permalink
Fix compilation of tests with UNICODE defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Aug 21, 2015
1 parent 83899ac commit db9c238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/LoadDll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ BOOL LoadFromMemory(char *filename)
goto exit;
}

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

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

0 comments on commit db9c238

Please sign in to comment.