MSI: Fix retrieval of nul records as strings
Mike McCormack
mike at codeweavers.com
Tue Jun 29 07:50:50 CDT 2004
ChangeLog:
* Fix retrieval of nul records as strings
-------------- next part --------------
diff -ur dlls/msi.old/record.c dlls/msi/record.c
--- dlls/msi.old/record.c 2004-06-29 07:47:52.000000000 -0500
+++ dlls/msi/record.c 2004-06-29 07:48:52.000000000 -0500
@@ -261,6 +261,10 @@
WideCharToMultiByte( CP_ACP, 0, rec->fields[iField].u.szwVal, -1,
szValue, *pcchValue, NULL, NULL);
break;
+ case MSIFIELD_NULL:
+ len = 1;
+ if( *pcchValue > 0 )
+ szValue[0] = 0;
default:
ret = ERROR_INVALID_PARAMETER;
break;
@@ -319,6 +323,10 @@
len = lstrlenW( rec->fields[iField].u.szwVal );
lstrcpynW(szValue, rec->fields[iField].u.szwVal, *pcchValue);
break;
+ case MSIFIELD_NULL:
+ len = 1;
+ if( *pcchValue > 0 )
+ szValue[0] = 0;
default:
break;
}
More information about the wine-patches
mailing list