View Issue Details

IDProjectCategoryView StatusLast Update
0000890Far ManagerDrive Menupublic2009-05-29 08:25
Reporternetghost Assigned Toalexy  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Fixed in Version2.0 
Summary0000890: Far unicode (both x86 and x64) crash when opening Drive Menu on Windows 7 x64
Descriptionnetwork.cpp:

75: DWORD res = WNetEnumResourceW(hEnum, &size, netResource, &bufsz);
76: if (res == NO_ERROR)
77: {
78: wchar_t letter = Lower(netResource->lpLocalName[0]);

On my Windows 7 x64 WNetEnuResourceW returns NO_ERROR, but it doesn't return any records (size is 0 after WNetEnumResourceW returns). Access violation happens in line 78, because lpLocalName is NULL (since no NETWORKRESOURCE record was returned).

Line 76 need to have additional checks:
76: if (res == NO_ERROR && size > 0 && netResource->lpLocalName != NULL)
TagsNo tags attached.
Build957

Activities

alexy

2009-05-28 22:46

administrator   bugnote:0003335

957

netghost

2009-05-29 08:07

reporter   bugnote:0003358

Change is checked in, bug fixed.

Issue History

Date Modified Username Field Change
2009-05-28 17:30 netghost New Issue
2009-05-28 22:41 alexy Status new => assigned
2009-05-28 22:41 alexy Assigned To => alexy
2009-05-28 22:46 alexy Note Added: 0003335
2009-05-28 22:46 alexy Status assigned => feedback
2009-05-29 08:07 netghost Note Added: 0003358
2009-05-29 08:07 netghost Status feedback => resolved
2009-05-29 08:07 netghost Resolution open => fixed
2009-05-29 08:25 alexy Build => 957
2009-05-29 08:25 alexy Status resolved => closed
2009-05-29 08:25 alexy Fixed in Version => 2.0