From 5d28d9704c81a6c86b882807500ec4e2e6f84404 Mon Sep 17 00:00:00 2001 From: Richard Campbell Date: Thu, 6 Mar 2003 19:33:18 +0000 Subject: [PATCH] Temp fix because LoadString isn't working properly. svn path=/trunk/; revision=4250 --- reactos/apps/demos/winemine/main.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/reactos/apps/demos/winemine/main.c b/reactos/apps/demos/winemine/main.c index 947c73a91ec..1b338985417 100644 --- a/reactos/apps/demos/winemine/main.c +++ b/reactos/apps/demos/winemine/main.c @@ -40,29 +40,31 @@ #define DEBUG(x) #endif +#define SZ_APPNAME "ROSMine" int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow ) { MSG msg; WNDCLASS wc; HWND hWnd; HACCEL haccel; + /* char appname[9]; - + LoadString doesn't appear to work properly under ROS LoadString( hInst, IDS_APPNAME, appname, sizeof(appname)); - + */ wc.style = 0; wc.lpfnWndProc = MainProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInst; - wc.hIcon = LoadIcon( hInst, appname ); + wc.hIcon = LoadIcon( hInst, SZ_APPNAME ); wc.hCursor = LoadCursor( NULL_HANDLE, IDI_APPLICATION ); wc.hbrBackground = (HBRUSH) GetStockObject( BLACK_BRUSH ); wc.lpszMenuName = "MENU_WINEMINE"; - wc.lpszClassName = appname; + wc.lpszClassName = SZ_APPNAME; if (!RegisterClass(&wc)) exit(1); - hWnd = CreateWindow( appname, appname, + hWnd = CreateWindow( SZ_APPNAME, SZ_APPNAME, WS_OVERLAPPEDWINDOW & ~WS_THICKFRAME & ~WS_MAXIMIZEBOX, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL_HANDLE, NULL_HANDLE, hInst, NULL ); @@ -72,7 +74,7 @@ int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmd ShowWindow( hWnd, cmdshow ); UpdateWindow( hWnd ); - haccel = LoadAccelerators( hInst, appname ); + haccel = LoadAccelerators( hInst, SZ_APPNAME ); SetTimer( hWnd, ID_TIMER, 1000, NULL ); while( GetMessage(&msg, NULL_HANDLE, 0, 0) ) {