[Bug 45357] Proprietary .NET 4.x program using Solid Framework .NET libraries and OCR crashes
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Jul 4 01:32:28 CDT 2018
https://bugs.winehq.org/show_bug.cgi?id=45357
--- Comment #12 from Anastasius Focht <focht at gmx.net> ---
Hi Silvan,
--- quote ---
The "vol" command on my Windows dev machine returns "78A1-8192" which
'winecfg' truncates to only the part before the dash. Maybe dashes are not
allowed there?
--- quote ---
You need to input it without hyphens.
Source:
https://source.winehq.org/git/wine.git/blob/HEAD:/programs/winecfg/drive.c#l183
--- snip ---
183 /* set the drive serial number via a .windows-serial file */
184 static void set_drive_serial( WCHAR letter, DWORD serial )
185 {
186 WCHAR filename[] =
{'a',':','\\','.','w','i','n','d','o','w','s','-','s','e','r','i','a','l',0};
187 HANDLE hFile;
188
189 filename[0] = letter;
190 WINE_TRACE("Putting serial number of %08X into file %s\n", serial,
wine_dbgstr_w(filename));
191 hFile = CreateFileW(filename, GENERIC_WRITE, FILE_SHARE_READ, NULL,
192 CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
193 if (hFile != INVALID_HANDLE_VALUE)
194 {
195 DWORD w;
196 char buffer[16];
197
198 sprintf( buffer, "%X\n", serial );
199 WriteFile(hFile, buffer, strlen(buffer), &w, NULL);
200 CloseHandle(hFile);
201 }
202 }
--- snip ---
Alternatively you can just create the file for drive serial number on your own,
example:
--- snip ---
$ echo "78A18192" > ~/.wine/drive_c/.windows-serial
--- snip ---
--- quote ---
On the negative side, the main program still didn't work. I attached a new
WINEDEBUG=+seh,+relay debug output.
--- quote ---
Still the same trace as with comment #2
Regards
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list