Unicodify it.
CORE-7355
svn path=/trunk/; revision=74004
add_rc_deps(fontview.rc ${CMAKE_CURRENT_SOURCE_DIR}/ttf.ico)
add_executable(fontview ${SOURCE} fontview.rc)
-set_module_type(fontview win32gui)
+set_module_type(fontview win32gui UNICODE)
add_importlibs(fontview comdlg32 gdi32 shell32 user32 msvcrt kernel32)
add_pch(fontview precomp.h SOURCE)
add_cd_file(TARGET fontview DESTINATION reactos/system32 FOR all)
pData = (DISPLAYDATA*)GetWindowLongPtr(hwnd, GWLP_USERDATA);
#endif
docinfo.cbSize = sizeof(DOCINFO);
- docinfo.lpszDocName = "Printing Font";
+ docinfo.lpszDocName = L"Printing Font";
docinfo.lpszOutput = NULL;
docinfo.lpszDatatype = NULL;
docinfo.fwType = 0;
}
int WINAPI
-WinMain (HINSTANCE hThisInstance,
+wWinMain(HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
- LPSTR lpCmdLine,
+ LPWSTR lpCmdLine,
int nCmdShow)
{
int argc;
DWORD fontExists;
/* First, we have to find out if the font still exists. */
- fontExists = GetFileAttributes((LPCSTR)g_fileName);
+ fontExists = GetFileAttributes(g_fileName);
if (fontExists != 0xFFFFFFFF) /* If the file does not exist */
{
ErrorMsgBox(0, IDS_ERROR_NOFONT, g_fileName);