win: Fix setting icon after format of atom.rc has changed.

This commit is contained in:
Cheng Zhao 2013-11-07 15:09:45 +08:00
parent 7dcbd11863
commit 8d710609fd

View file

@ -224,7 +224,7 @@ NativeWindowWin::NativeWindowWin(content::WebContents* web_contents,
OnViewWasResized(); OnViewWasResized();
if (g_exe_icon == NULL) if (g_exe_icon == NULL)
g_exe_icon = ::LoadImage(GetModuleHandle(NULL), L"IDR_MAINFRAME", g_exe_icon = ::LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(1),
IMAGE_ICON, 0, 0, 0); IMAGE_ICON, 0, 0, 0);
::SendMessage(window_->GetNativeWindow(), ::SendMessage(window_->GetNativeWindow(),
WM_SETICON, WM_SETICON,