Skip to content

Commit

Permalink
Fix crash on FF and chrome when "getRunningApps()" is called
Browse files Browse the repository at this point in the history
  • Loading branch information
bossiel committed Jul 3, 2014
1 parent a713eec commit 4c2ddf2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions common/_Utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -635,16 +635,16 @@ static BOOL CALLBACK _UtilsEnumWindowsProc( __in HWND hWnd, __in LPARAM lParam
if (hIcon == NULL) {
hIcon = (HICON)SendMessage(hWnd, WM_GETICON, ICON_SMALL2, NULL);
}
if (hIcon == NULL) {
else if (hIcon == NULL) {
hIcon = (HICON)SendMessage(hWnd, WM_GETICON, ICON_SMALL, NULL);
}
if (hIcon == NULL) {
else if (hIcon == NULL) {
hIcon = (HICON)GetClassLong(hWnd, GCL_HICON);
}
if (hIcon == NULL) {
else if (hIcon == NULL) {
hIcon = (HICON)GetClassLong(hWnd, GCL_HICONSM);
}
if (hIcon == NULL) {
else if (hIcon == NULL) {
hIcon = LoadIcon(NULL, IDI_APPLICATION);
}

Expand All @@ -663,7 +663,7 @@ static BOOL CALLBACK _UtilsEnumWindowsProc( __in HWND hWnd, __in LPARAM lParam


_Utils::MemFree((void**)&tmpBuffWindowText);
_Utils::MemFree((void**)&base64dataPtr);
TSK_FREE(base64dataPtr);
return TRUE;
}

Expand Down

0 comments on commit 4c2ddf2

Please sign in to comment.