Bug 180150 - [win] nsWindow::SetIcon should not call ::LoadImageW( ..., LR_LOADFROMFILE | LR_SHARED )

r=pavlov, sr=roc+moz
This commit is contained in:
timeless%mozdev.org 2003-04-20 20:57:36 +00:00
parent 8b5be13a9d
commit be23a13ac7

View File

@ -5501,13 +5501,13 @@ NS_METHOD nsWindow::SetIcon(const nsAString& anIconSpec)
IMAGE_ICON,
::GetSystemMetrics(SM_CXICON),
::GetSystemMetrics(SM_CYICON),
LR_LOADFROMFILE | LR_SHARED );
LR_LOADFROMFILE );
HICON smallIcon = (HICON)::LoadImageW( NULL,
(LPCWSTR)iconPath.get(),
IMAGE_ICON,
::GetSystemMetrics(SM_CXSMICON),
::GetSystemMetrics(SM_CYSMICON),
LR_LOADFROMFILE | LR_SHARED );
LR_LOADFROMFILE );
// See if unicode API not implemented and if not, try ascii version
if ( ::GetLastError() == ERROR_CALL_NOT_IMPLEMENTED ) {