Re: [WiX-users] Closing MSIHANDLE question

2009-05-08 Thread Rob Mensching
Right. DONG LEE wrote: > Hi, > > I am trying to determine if I need to close both of the handles in the > following scenario. > > void func(MSIHANDLE hArgRecord) > { > ... > } > > int main() > { > ... > MSIHANDLE hRecord = MsiCreateRecord(n); > .. > func(hRecord); > ... > } > > Here, do I need to

[WiX-users] Closing MSIHANDLE question

2009-05-08 Thread DONG LEE
Hi, I am trying to determine if I need to close both of the handles in the following scenario. void func(MSIHANDLE hArgRecord) { ... } int main() { ... MSIHANDLE hRecord = MsiCreateRecord(n); .. func(hRecord); ... } Here, do I need to do MsiCloseHandle on both hRecord and hArgRecord? It seems t