New icon. Couple of code changes linked to that. Just playing :)
[reactos.git] / reactos / subsys / system / servman / servman.c
index 31e828f..daf24bc 100644 (file)
@@ -91,9 +91,8 @@ GetServices ( void )
                 GetSystemMetrics(SM_CYSMICON), ILC_MASK, 1, 1);\r
 \r
             /* Add an icon to each image list */\r
-            hiconItem = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_SM_ICON));\r
+            hiconItem = LoadImage(hInstance, MAKEINTRESOURCE(IDI_SM_ICON), IMAGE_ICON, 16, 16, 0);\r
             ImageList_AddIcon(hSmall, hiconItem);\r
-            DestroyIcon(hiconItem);\r
 \r
             ListView_SetImageList(hListView, hSmall, LVSIL_SMALL);\r
 \r
@@ -574,7 +573,7 @@ int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance,
        wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);\r
        wc.lpszMenuName  = MAKEINTRESOURCE(IDR_MAINMENU);\r
        wc.lpszClassName = ClassName;\r
-       wc.hIconSm               = (HICON)LoadImage(GetModuleHandle(NULL),\r
+       wc.hIconSm               = (HICON)LoadImage(hInstance,\r
                         MAKEINTRESOURCE(IDI_SM_ICON), IMAGE_ICON, 16, 16, 0);\r
 \r
        if(!RegisterClassEx(&wc))\r