[NTVDM] Load resource strings in Unicode when printing them in Unicode
authorGregor Schneider <grschneider@gmail.com>
Tue, 20 Apr 2010 18:59:58 +0000 (18:59 +0000)
committerGregor Schneider <grschneider@gmail.com>
Tue, 20 Apr 2010 18:59:58 +0000 (18:59 +0000)
svn path=/trunk/; revision=46963

reactos/subsystems/ntvdm/ntvdm.c

index afa44ef..5a9a29a 100644 (file)
@@ -282,8 +282,8 @@ WinMain(HINSTANCE hInstance,  HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nSho
     WCHAR PromptMsg[RC_STRING_MAX_SIZE];
     CHAR InputBuffer[255];
 
-    LoadString( GetModuleHandle(NULL), STRING_WelcomeMsg,  (LPTSTR) WelcomeMsg,sizeof(WelcomeMsg) / sizeof(WelcomeMsg[0]));
-    LoadString( GetModuleHandle(NULL), STRING_PromptMsg,  (LPTSTR) PromptMsg ,sizeof(PromptMsg) / sizeof(PromptMsg[0]));
+    LoadStringW( GetModuleHandle(NULL), STRING_WelcomeMsg, WelcomeMsg,sizeof(WelcomeMsg) / sizeof(WelcomeMsg[0]));
+    LoadStringW( GetModuleHandle(NULL), STRING_PromptMsg, PromptMsg ,sizeof(PromptMsg) / sizeof(PromptMsg[0]));
 
     AllocConsole();
     SetConsoleTitleW(L"ntvdm");