https://bugs.winehq.org/show_bug.cgi?id=45357
--- Comment #12 from Anastasius Focht focht@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#l...
--- 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